public class RuggedException extends Exception
This class is heavily based on Orekit OrekitException,
which is distributed under the terms of the Apache License V2.
| Constructor and Description |
|---|
RuggedException(ExceptionContextProvider provider)
Simple constructor.
|
RuggedException(Localizable specifier,
Object... parts)
Simple constructor.
|
RuggedException(Localizable message,
Throwable cause)
Simple constructor.
|
RuggedException(RuggedException exception)
Copy constructor.
|
RuggedException(Throwable cause,
Localizable specifier,
Object... parts)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
createInternalError(Throwable cause)
Create an
RuntimeException for an internal error. |
String |
getLocalizedMessage() |
String |
getMessage() |
String |
getMessage(Locale locale)
Gets the message in a specified locale.
|
Object[] |
getParts()
Get the variable parts of the error message.
|
Localizable |
getSpecifier()
Get the localizable specifier of the error message.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuggedException(Localizable specifier, Object... parts)
specifier - format specifier (to be translated)parts - parts to insert in the format (no translation)public RuggedException(RuggedException exception)
exception - exception to copy frompublic RuggedException(Localizable message, Throwable cause)
message - descriptive messagecause - underlying causepublic RuggedException(Throwable cause, Localizable specifier, Object... parts)
cause - underlying causespecifier - format specifier (to be translated)parts - parts to insert in the format (no translation)public RuggedException(ExceptionContextProvider provider)
provider - underlying exception context providerpublic String getMessage(Locale locale)
locale - Locale in which the message should be translatedpublic String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic Localizable getSpecifier()
public Object[] getParts()
public static RuntimeException createInternalError(Throwable cause)
RuntimeException for an internal error.cause - underlying causeRuntimeException for an internal errorCopyright © 2014–2016 CS Syst?mes d'Information. All rights reserved.