1 16 package org.directwebremoting.extend; 17 18 import org.directwebremoting.util.Messages; 19 20 24 public class MarshallException extends Exception 25 { 26 30 public MarshallException(Class paramType) 31 { 32 super(Messages.getString("MarshallException.SimpleFailure", paramType.getName())); 33 this.paramType = paramType; 34 } 35 36 41 public MarshallException(Class paramType, Throwable ex) 42 { 43 super(Messages.getString("MarshallException.FailureWithCause", paramType.getName(), ex.getMessage())); 44 45 this.paramType = paramType; 46 this.ex = ex; 47 } 48 49 54 public MarshallException(Class paramType, String message) 55 { 56 super(Messages.getString("MarshallException.FailureWithCause", paramType.getName(), message)); 57 58 this.paramType = paramType; 59 } 60 61 64 public Throwable getCause() 65 { 66 return ex; 67 } 68 69 73 public Class getConversionType() 74 { 75 return paramType; 76 } 77 78 81 private Class paramType; 82 83 86 private Throwable ex = null; 87 } 88 | Popular Tags |