Bouncy Castle Cryptography Library 1.81

org.bouncycastle.pkix.util
Class LocalizedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.bouncycastle.pkix.util.LocalizedException
All Implemented Interfaces:
java.io.Serializable

public class LocalizedException
extends java.lang.Exception

Base class for all Exceptions with localized messages.

See Also:
Serialized Form

Field Summary
protected  ErrorBundle message
           
 
Constructor Summary
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
 java.lang.Throwable getCause()
           
 ErrorBundle getErrorMessage()
          Returns the localized error message of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected ErrorBundle message
Constructor Detail

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,
                          java.lang.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 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()

Bouncy Castle Cryptography Library 1.81