Package org.bouncycastle.pkix.util
Class LocalizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bouncycastle.pkix.util.LocalizedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CertPathReviewerException
Base class for all Exceptions with localized messages.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLocalizedException
(ErrorBundle message) Constructs a new LocalizedException with the specified localized message.LocalizedException
(ErrorBundle message, Throwable throwable) Constructs a new LocalizedException with the specified localized message and cause. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns the localized error message of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
message
-
-
Constructor Details
-
LocalizedException
Constructs a new LocalizedException with the specified localized message.- Parameters:
message
- theErrorBundle
that contains the message for the exception
-
LocalizedException
Constructs a new LocalizedException with the specified localized message and cause.- Parameters:
message
- theErrorBundle
that contains the message for the exceptionthrowable
- the cause
-
-
Method Details
-
getErrorMessage
Returns the localized error message of the exception.- Returns:
- the localized error message as
ErrorBundle
-
getCause
-