public class LocalizedException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected ErrorBundle |
message |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause() |
ErrorBundle |
getErrorMessage()
Returns the localized error message of the exception.
|
protected ErrorBundle message
public LocalizedException(ErrorBundle message)
message
- the ErrorBundle
that contains the message for the exceptionpublic LocalizedException(ErrorBundle message, java.lang.Throwable throwable)
message
- the ErrorBundle
that contains the message for the exceptionthrowable
- the causepublic ErrorBundle getErrorMessage()
ErrorBundle
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable