Class ConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.gebit.integrity.parameter.conversion.ConversionException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConversionFailedException,ConversionUnsupportedException
public abstract class ConversionException extends RuntimeException
Base class for conversion-related exceptions.- Author:
- Rene Schneider - initial API and implementation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversionException(Class<?> aSourceType, Class<?> aTargetType, String aMessage)Instantiates a new conversion exception.ConversionException(Class<?> aSourceType, Class<?> aTargetType, String aMessage, Throwable aCause)Instantiates a new conversion exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Class<?>getSourceType()Class<?>getTargetType()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConversionException
public ConversionException(Class<?> aSourceType, Class<?> aTargetType, String aMessage, Throwable aCause)
Instantiates a new conversion exception.- Parameters:
aSourceType- the a source typeaTargetType- the a target typeaMessage- the a messageaCause- the a cause
-
-
Method Detail
-
getSourceType
public Class<?> getSourceType()
-
getTargetType
public Class<?> getTargetType()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-