FileDocCategorySizeDatePackage
LocalizedException.javaAPI DocAndroid 1.5 API1316Wed May 06 22:41:06 BST 2009org.bouncycastle.i18n

LocalizedException

public class LocalizedException extends Exception
Base class for all Exceptions with localized messages.

Fields Summary
protected ErrorBundle
message
private Throwable
cause
Constructors Summary
public LocalizedException(ErrorBundle message)
Constructs a new LocalizedException with the specified localized message.

param
message the {@link ErrorBundle} that contains the message for the exception

        super(message.getText(Locale.getDefault()));
        this.message = message;
    
public LocalizedException(ErrorBundle message, Throwable throwable)
Constructs a new LocalizedException with the specified localized message and cause.

param
message the {@link ErrorBundle} that contains the message for the exception
param
throwable the cause

        super(message.getText(Locale.getDefault()));
        this.message = message;
        this.cause = throwable;
    
Methods Summary
public java.lang.ThrowablegetCause()

        return cause;
    
public ErrorBundlegetErrorMessage()
Returns the localized error message of the exception.

return
the localized error message as {@link ErrorBundle}

        return message;