Class LocalizedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bouncycastle.i18n.LocalizedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CertPathReviewerException

public class LocalizedException extends Exception
Base class for all Exceptions with localized messages.
See Also:
  • Field Details

  • Constructor Details

    • LocalizedException

      public LocalizedException(ErrorBundle message)
      Constructs a new LocalizedException with the specified localized message.
      Parameters:
      message - the ErrorBundle that contains the message for the exception
    • LocalizedException

      public LocalizedException(ErrorBundle message, Throwable throwable)
      Constructs a new LocalizedException with the specified localized message and cause.
      Parameters:
      message - the ErrorBundle that contains the message for the exception
      throwable - the cause
  • Method Details

    • getErrorMessage

      public ErrorBundle getErrorMessage()
      Returns the localized error message of the exception.
      Returns:
      the localized error message as ErrorBundle
    • getCause

      public Throwable getCause()
      Overrides:
      getCause in class Throwable