|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
RuntimeException
UnsupportedOperationException
UnformattableObjectException
public class UnformattableObjectException
Thrown by Formattable.toWKT()
when an object can't be formatted as WKT.
A formatting may fails because an object is too complex for the WKT format
capability (for example an engineering CRS with different unit for each axis), or because only some specific
implementations can be formatted as WKT.
Formatter.setInvalidWKT(java.lang.Class>)
,
Serialized Form
modules/library/referencing (gt-referencing.jar)
Constructor Summary | |
---|---|
UnformattableObjectException(String message)
Deprecated. Replaced by UnformattableObjectException(String, Class) . |
|
UnformattableObjectException(String message,
Class unformattable)
Constructs an exception with the specified detail message. |
Method Summary | |
---|---|
String |
getMessage()
Returns the detail message. |
Class |
getUnformattableClass()
Returns the type of the object that can't be formatted. |
Methods inherited from class Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnformattableObjectException(String message)
UnformattableObjectException(String, Class)
.
message
- The detail message.public UnformattableObjectException(String message, Class unformattable)
message
- The detail message. If null
, a default message will be created.unformattable
- The type of the object that can't be formatted.Method Detail |
---|
public Class getUnformattableClass()
CoordinateReferenceSystem.class
.
It doesn't mean that no CRS can be formatted; only that a particular instance of it
can't. Other possible classes are ImageDatum
,
ProjectedCRS
, etc.
public String getMessage()
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |