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.
|
getErrorOffset
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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 LocalizedException
getMessage
in class Throwable
public 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 LocalizedException
getLocalizedMessage
in class Throwable
public InternationalString getInternationalMessage()
null
.getInternationalMessage
in interface LocalizedException
null
if this exception can not produce international message.public UnparsableObjectException initCause(Throwable cause)
initCause
in class Throwable
cause
- the cause saved for later retrieval by the Throwable.getCause()
method.UnparsableObjectException
instance.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.