| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.UnsupportedOperationException org.geotools.referencing.wkt.UnformattableObjectException
UnformattableObjectException | public class UnformattableObjectException extends UnsupportedOperationException (Code) | | 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
with different unit for each axis), or because only some specific
implementations can be formatted as WKT.
since: 2.0 version: $Id: UnformattableObjectException.java 24701 2007-03-07 22:25:42Z desruisseaux $ author: Martin Desruisseaux See Also: Formatter.setInvalidWKT |
UnformattableObjectException | public UnformattableObjectException(String message, Class unformattable)(Code) | | Constructs an exception with the specified detail message.
Parameters: message - The detail message. If null , a default message will be created. Parameters: unformattable - The type of the object that can't be formatted. since: 2.4 |
getMessage | public String getMessage()(Code) | | Returns the detail message. A default message is formatted
if none was specified at construction time.
|
getUnformattableClass | public Class getUnformattableClass()(Code) | | Returns the type of the object that can't be formatted. This is often an OpenGIS
interface rather than the implementation class. For example if a engineering CRS
uses different unit for each axis, then this method may return
.class .
It doesn't mean that no CRS can be formatted; only that a particular instance of it
can't. Other possible classes are
org.opengis.referencing.datum.ImageDatum ,
org.opengis.referencing.crs.ProjectedCRS , etc.
since: 2.4 |
|
|