public class LocalizedRuntimeException extends RuntimeException
bundle
.
Extending exceptions should use getLocalizedMessage()
.Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
bundle
The resource bundle that can be used by subclasses.
|
Constructor and Description |
---|
LocalizedRuntimeException()
Default no-arg constructor
|
LocalizedRuntimeException(String message) |
LocalizedRuntimeException(String message,
Throwable cause) |
LocalizedRuntimeException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
LocalizedRuntimeException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage()
Returns the localized message if any otherwise returns
Throwable.getMessage() |
void |
setLocalizeMessage(String message)
Sets the localized message.
|
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected static final ResourceBundle bundle
public LocalizedRuntimeException()
public LocalizedRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message
- a messagecause
- a causeenableSuppression
- true if suppression should be enabledwritableStackTrace
- true if the StacktTace should be writablepublic LocalizedRuntimeException(String message, Throwable cause)
message
- a messagecause
- a causepublic LocalizedRuntimeException(String message)
message
- a messagepublic LocalizedRuntimeException(Throwable cause)
cause
- a causepublic String getLocalizedMessage()
Throwable.getMessage()
getLocalizedMessage
in class Throwable
public void setLocalizeMessage(String message)
message
- Copyright © 2012 redlab.be. All Rights Reserved.