|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spicefactory.cinnamon.reflect.ConversionException
public class ConversionException
Exception thrown when type conversion fails.
| Constructor Summary | |
|---|---|
ConversionException(Object value,
Type targetType)
Creates a new ConversionException |
|
ConversionException(Object value,
Type targetType,
String message)
Creates a new ConversionException |
|
ConversionException(Object value,
Type targetType,
String message,
Throwable cause)
Creates a new ConversionException |
|
ConversionException(Object value,
Type targetType,
Throwable cause)
Creates a new ConversionException |
|
| Method Summary | |
|---|---|
Type |
getGenericTargetType()
Returns the generic target type of the failed conversion. |
Class<?> |
getRawTargetType()
Returns the raw target type of the failed conversion. |
Object |
getValue()
Returns the original value that cannot be converted to the target type. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConversionException(Object value,
Type targetType)
value - the value that could not be convertedtargetType - the target type that the specified value should have been converted to
public ConversionException(Object value,
Type targetType,
Throwable cause)
value - the value that could not be convertedtargetType - the target type that the specified value should have been converted tocause - the root cause
public ConversionException(Object value,
Type targetType,
String message)
value - the value that could not be convertedtargetType - the target type that the specified value should have been converted tomessage - the error message
public ConversionException(Object value,
Type targetType,
String message,
Throwable cause)
value - the value that could not be convertedtargetType - the target type that the specified value should have been converted tomessage - the error messagecause - the root cause| Method Detail |
|---|
public Type getGenericTargetType()
public Class<?> getRawTargetType()
public Object getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||