1 16 package org.directwebremoting.convert; 17 18 import java.util.HashMap ; 19 import java.util.Map ; 20 21 import org.directwebremoting.extend.MarshallException; 22 23 30 public class MinimalistExceptionConverter extends BeanConverter 31 { 32 35 public Map getPropertyMapFromClass(Class type, boolean readRequired, boolean writeRequired) throws MarshallException 36 { 37 Map descriptors = new HashMap (); 38 39 descriptors.put("message", new PlainProperty("message", "Error")); 40 descriptors.put("javaClassName", new PlainProperty("javaClassName", "java.lang.Throwable")); 41 42 return descriptors; 43 } 44 } 45 | Popular Tags |