Package org.bouncycastle.i18n
Class LocalizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.bouncycastle.i18n.LocalizedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CertPathReviewerException
public class LocalizedException extends java.lang.Exception
Base class for all Exceptions with localized messages.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrorBundle
message
-
Constructor Summary
Constructors Constructor Description LocalizedException(ErrorBundle message)
Constructs a new LocalizedException with the specified localized message.LocalizedException(ErrorBundle message, java.lang.Throwable throwable)
Constructs a new LocalizedException with the specified localized message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
ErrorBundle
getErrorMessage()
Returns the localized error message of the exception.
-
-
-
Field Detail
-
message
protected ErrorBundle message
-
-
Constructor Detail
-
LocalizedException
public LocalizedException(ErrorBundle message)
Constructs a new LocalizedException with the specified localized message.- Parameters:
message
- theErrorBundle
that contains the message for the exception
-
LocalizedException
public LocalizedException(ErrorBundle message, java.lang.Throwable throwable)
Constructs a new LocalizedException with the specified localized message and cause.- Parameters:
message
- theErrorBundle
that contains the message for the exceptionthrowable
- the cause
-
-
Method Detail
-
getErrorMessage
public ErrorBundle getErrorMessage()
Returns the localized error message of the exception.- Returns:
- the localized error message as
ErrorBundle
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
-