Package org.orekit.errors
Class OrekitIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.orekit.errors.OrekitIOException
- All Implemented Interfaces:
Serializable,LocalizedException
Extension of
IOException with localized message.- Since:
- 9.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrekitIOException(Localizable specifier, Object... parts) Create an exception with localized message. -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(Locale locale) Gets the message in a specified locale.Object[]getParts()Get the variable parts of the error message.Get the localizable specifier of the error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OrekitIOException
Create an exception with localized message.- Parameters:
specifier- format specifier (to be translated)parts- parts to insert in the format (no translation)
-
-
Method Details
-
getMessage
Gets the message in a specified locale.- Specified by:
getMessagein interfaceLocalizedException- Parameters:
locale- Locale in which the message should be translated- Returns:
- localized message
-
getMessage
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
getSpecifier
Get the localizable specifier of the error message.- Specified by:
getSpecifierin interfaceLocalizedException- Returns:
- localizable specifier of the error message
-
getParts
Get the variable parts of the error message.- Specified by:
getPartsin interfaceLocalizedException- Returns:
- a copy of the variable parts of the error message
-