public class RuggedException extends RuntimeException implements LocalizedException
This class is heavily based on OrekitException
,
which is distributed under the terms of the Apache License V2.
Constructor and Description |
---|
RuggedException(Localizable specifier,
Object... parts)
Simple constructor.
|
RuggedException(Throwable cause,
Localizable specifier,
Object... parts)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage() |
String |
getMessage() |
String |
getMessage(Locale 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, toString
public RuggedException(Localizable specifier, Object... parts)
specifier
- format specifier (to be translated)parts
- parts to insert in the format (no translation)public 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 String getMessage(Locale locale)
getMessage
in interface LocalizedException
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Localizable getSpecifier()
getSpecifier
in interface LocalizedException
public Object[] getParts()
getParts
in interface LocalizedException
Copyright © 2014-2023 CS GROUP. All rights reserved.