@Immutable public class ValueFormatException extends RuntimeException
Constructor and Description |
---|
ValueFormatException(Object value,
PropertyType targetType,
String message) |
ValueFormatException(Object value,
PropertyType targetType,
String message,
Throwable cause) |
ValueFormatException(PropertyType targetType,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
PropertyType |
getTargetType()
Get the
PropertyType to which the value was being converted. |
Object |
getValue()
Get the original value that was being converted.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValueFormatException(Object value, PropertyType targetType, String message)
value
- the value that was not able to be convertedtargetType
- the PropertyType
to which the value was being convertedmessage
- the messagepublic ValueFormatException(PropertyType targetType, String message, Throwable cause)
targetType
- the PropertyType
to which the value was being convertedmessage
- the messagecause
- the cause of the exceptionpublic ValueFormatException(Object value, PropertyType targetType, String message, Throwable cause)
value
- the value that was not able to be convertedtargetType
- the PropertyType
to which the value was being convertedmessage
- the messagecause
- the cause of the exceptionpublic PropertyType getTargetType()
PropertyType
to which the value
was being converted.public Object getValue()
null
in certain cases (e.g. when streams cause this exception)Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.