public class UnparsableObjectException extends ParseException implements LocalizedException
getMessage() returns the message in the default locale.
In a client-server architecture, this is typically the locale on the server side.getLocalizedMessage() returns the message in the locale given in argument to the
WKTFormat constructor.
In a client-server architecture, it is presumably the locale on the client side.Defined in the sis-metadata module
| Constructor and Description |
|---|
UnparsableObjectException(String message,
int errorOffset)
Creates an exception with the specified details message.
|
| Modifier and Type | Method and Description |
|---|---|
InternationalString |
getInternationalMessage()
If this exception is capable to return the message in various locales, returns that message.
|
String |
getLocalizedMessage()
Returns a localized version of the exception message, typically for final user.
|
String |
getMessage()
Returns the exception message in the default locale, typically for system administrator.
|
UnparsableObjectException |
initCause(Throwable cause)
Initializes the cause of this throwable to the specified value.
|
getErrorOffsetaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnparsableObjectException(String message, int errorOffset)
message - the detail message in the default locale.errorOffset - the position where the error is found while parsing.public String getMessage()
getMessage in interface LocalizedExceptiongetMessage in class Throwablepublic String getLocalizedMessage()
getMessage(),
but may in some occasions be in a different language if WKTFormat has been
constructed
with a different locale.getLocalizedMessage in interface LocalizedExceptiongetLocalizedMessage in class Throwablepublic InternationalString getInternationalMessage()
null.getInternationalMessage in interface LocalizedExceptionnull if this exception can not produce international message.public UnparsableObjectException initCause(Throwable cause)
initCause in class Throwablecause - the cause saved for later retrieval by the Throwable.getCause() method.UnparsableObjectException instance.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.