Package org.apache.sis.io.wkt
Class UnformattableObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
org.apache.sis.io.wkt.UnformattableObjectException
- All Implemented Interfaces:
Serializable
Thrown by
FormattableObject.toWKT()
when an object cannot be formatted as WKT.
A formatting may fail because an object contains properties which cannot be represented
by the standard WKT elements.
Example:
An engineering CRS cannot be represented in the WKT 1 format if all axes do not use the same
unit of measurement. However, such CRS can be represented in the WKT 2 format.
This exception may also be thrown by Formatter
if the object given to an
append(…)
method is an instance of an unsupported class.- Since:
- 0.4
- Version:
- 0.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception with no message.UnformattableObjectException
(String message) Constructs a new exception with the specified detail message.UnformattableObjectException
(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
-
UnformattableObjectException
public UnformattableObjectException()Constructs a new exception with no message. -
UnformattableObjectException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message, ornull
if none.
-
UnformattableObjectException
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.
-
UnformattableObjectException
Constructs a new exception with the specified cause.- Parameters:
cause
- the cause, ornull
if none.
-