Package org.apache.sis.util
Class UnconvertibleObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.sis.util.UnconvertibleObjectException
- All Implemented Interfaces:
Serializable
Thrown when an object cannot be converted
from the source type to the target type.
Some converters may attempt many strategies before to give up, resulting in more than one exception being caught. In such case, all the failed attempts will be reported as suppressed exceptions and the cause will be an arbitrary item of this list.
- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception with no message.UnconvertibleObjectException
(String message) Constructs a new exception with the specified detail message.UnconvertibleObjectException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
UnconvertibleObjectException
public UnconvertibleObjectException()Constructs a new exception with no message. -
UnconvertibleObjectException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message, ornull
if none.
-
UnconvertibleObjectException
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message, ornull
if none.cause
- the cause, ornull
if none.
-
UnconvertibleObjectException
Constructs a new exception with the specified cause.- Parameters:
cause
- the cause, ornull
if none.
-