Package org.apache.sis.io.wkt
Class UnparsableObjectException
Object
Throwable
Exception
ParseException
UnparsableObjectException
- All Implemented Interfaces:
- Serializable,- LocalizedException
Thrown when a Well Known Text (WKT) cannot be parsed.
 
Localization
This exception may contain the error message in two languages:- 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- WKTFormatconstructor. In a client-server architecture, it is presumably the locale on the client side.
- Since:
- 0.8
- See Also:
Defined in the sis-referencing module
- 
Constructor SummaryConstructorsConstructorDescriptionUnparsableObjectException(String message, int errorOffset) Creates an exception with the specified details message.
- 
Method SummaryModifier and TypeMethodDescriptionIf this exception is capable to return the message in various locales, returns that message.Returns a localized version of the exception message, typically for final user.Returns the exception message in the default locale, typically for system administrator.initCause(Throwable cause) Initializes the cause of this throwable to the specified value.Methods inherited from class ParseExceptiongetErrorOffsetMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
UnparsableObjectExceptionCreates an exception with the specified details message.- Parameters:
- message- the detail message in the default locale.
- errorOffset- the position where the error is found while parsing.
 
 
- 
- 
Method Details- 
getMessageReturns the exception message in the default locale, typically for system administrator.- Specified by:
- getMessagein interface- LocalizedException
- Overrides:
- getMessagein class- Throwable
- Returns:
- the message of this exception.
 
- 
getLocalizedMessageReturns a localized version of the exception message, typically for final user. This is often the same message than the one returned bygetMessage(), but may in some occasions be in a different language ifWKTFormathas been constructed with a different locale.- Specified by:
- getLocalizedMessagein interface- LocalizedException
- Overrides:
- getLocalizedMessagein class- Throwable
- Returns:
- the localized message of this exception.
 
- 
getInternationalMessageIf this exception is capable to return the message in various locales, returns that message. Otherwise returnsnull.- Specified by:
- getInternationalMessagein interface- LocalizedException
- Returns:
- the exception message, or nullif this exception cannot produce international message.
 
- 
initCauseInitializes the cause of this throwable to the specified value.- Overrides:
- initCausein class- Throwable
- Parameters:
- cause- the cause saved for later retrieval by the- Throwable.getCause()method.
- Returns:
- a reference to this UnparsableObjectExceptioninstance.
 
 
-