public final class TypeConverterException extends RuntimeException
TypeConverter class
if type conversion fails.| Modifier and Type | Class and Description |
|---|---|
static class |
TypeConverterException.EReason |
| Constructor and Description |
|---|
TypeConverterException(Class<?> aSrcClass,
Class<?> aDstClass,
TypeConverterException.EReason eReason)
Constructor.
|
TypeConverterException(Class<?> aSrcClass,
Class<?> aDstClass,
TypeConverterException.EReason eReason,
Throwable aCause)
Constructor with a cause exception.
|
TypeConverterException(Class<?> aDstClass,
TypeConverterException.EReason eReason)
Constructor only with a destination class.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDstClass() |
TypeConverterException.EReason |
getReason() |
Class<?> |
getSrcClass() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TypeConverterException(@Nonnull Class<?> aDstClass, @Nonnull TypeConverterException.EReason eReason)
aDstClass - The conversion destination class. May not be null.eReason - The reason code why the transformation failed. May not be
null.public TypeConverterException(@Nonnull Class<?> aSrcClass, @Nonnull Class<?> aDstClass, @Nonnull TypeConverterException.EReason eReason)
aSrcClass - The conversion source class. May not be null.aDstClass - The conversion destination class. May not be null.eReason - The reason code why the transformation failed. May not be
null.public TypeConverterException(@Nonnull Class<?> aSrcClass, @Nonnull Class<?> aDstClass, @Nonnull TypeConverterException.EReason eReason, @Nullable Throwable aCause)
aSrcClass - The conversion source class. May not be null.aDstClass - The conversion destination class. May not be null.eReason - The reason code why the transformation failed. May not be
null.aCause - A causing exception. May be null.@Nullable public Class<?> getSrcClass()
null.@Nonnull public Class<?> getDstClass()
null.@Nonnull public TypeConverterException.EReason getReason()
null.Copyright © 2014–2015 Philip Helger. All rights reserved.