Package org.orekit.errors
Class OrekitInternalError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.orekit.errors.OrekitInternalError
-
- All Implemented Interfaces:
Serializable,LocalizedException
public class OrekitInternalError extends IllegalStateException implements LocalizedException
Extension ofRuntimewith localized message for internal errors only.- Since:
- 7.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrekitInternalError(Throwable cause)Create an exception with localized message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedMessage()StringgetMessage()StringgetMessage(Locale locale)Gets the message in a specified locale.Object[]getParts()Get the variable parts of the error message.org.hipparchus.exception.LocalizablegetSpecifier()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 Detail
-
OrekitInternalError
public OrekitInternalError(Throwable cause)
Create an exception with localized message.- Parameters:
cause- underlying cause
-
-
Method Detail
-
getMessage
public String getMessage(Locale locale)
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
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
getSpecifier
public org.hipparchus.exception.Localizable getSpecifier()
Get the localizable specifier of the error message.- Specified by:
getSpecifierin interfaceLocalizedException- Returns:
- localizable specifier of the error message
-
getParts
public Object[] getParts()
Get the variable parts of the error message.- Specified by:
getPartsin interfaceLocalizedException- Returns:
- a copy of the variable parts of the error message
-
-