public final class InvalidDataConversionException extends FormattedRuntimeException
Exception that gets thrown if you try to perform an invalid conversion, such as when calling
ObjectMap.getInt(...)
on a non-numeric
Constructor and Description |
---|
InvalidDataConversionException(Object value,
Class<?> toType,
Exception cause) |
InvalidDataConversionException(Object value,
ClassMeta<?> toType,
Exception cause) |
InvalidDataConversionException(Throwable cause,
String message,
Object... args)
Constructor.
|
getMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidDataConversionException(Throwable cause, String message, Object... args)
cause
- The cause of this exception.message
- The MessageFormat
-style message.args
- Optional MessageFormat
-style arguments.public InvalidDataConversionException(Object value, Class<?> toType, Exception cause)
toType
- Attempting to convert to this class type.cause
- The cause.value
- The value being converted.public InvalidDataConversionException(Object value, ClassMeta<?> toType, Exception cause)
toType
- Attempting to convert to this class type.cause
- The cause.value
- The value being converted.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.