Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.i18n;
 
Base class for all Exceptions with localized messages.
 
 public class LocalizedException extends Exception 
 {
    protected ErrorBundle message;
    private Throwable cause;
    
    
Constructs a new LocalizedException with the specified localized message.

Parameters:
message the ErrorBundle that contains the message for the exception
    public LocalizedException(ErrorBundle message
    {
        super(message.getText(Locale.getDefault()));
        this. = message;
    }
    
    
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
    public LocalizedException(ErrorBundle messageThrowable throwable
    {
        super(message.getText(Locale.getDefault()));
        this. = message;
        this. = throwable;
    }
    
    
Returns the localized error message of the exception.

Returns:
the localized error message as ErrorBundle
    public ErrorBundle getErrorMessage() 
    {
        return ;
    }
    public Throwable getCause()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X