public class JpsLocalizableException extends java.lang.Exception implements Localizable
Constructor and Description |
---|
JpsLocalizableException()
Default constructor.
|
JpsLocalizableException(JpsBundleType bundleType, java.lang.String errorCode)
The constructor takes resource bundle type and error code
|
JpsLocalizableException(JpsBundleType bundleType, java.lang.String errorCode, java.lang.Object[] parameters)
The constructor takes resource bundle type, error code and message parameters.
|
JpsLocalizableException(java.lang.String msg)
The constructor takes the message.
|
JpsLocalizableException(java.lang.String msg, java.lang.Throwable cause)
The constructor takes the message and cause.
|
JpsLocalizableException(java.lang.Throwable cause)
The constructor takes the cause.
|
Modifier and Type | Method and Description |
---|---|
JpsBundleType |
getBundleType()
Returns bundle type
|
java.lang.String |
getErrorCode()
Returns error code.
|
java.lang.String |
getLocalizedMessage()
Returns localized message according to default locale of current JVM.
|
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns localized message according to given locale.
|
java.lang.String |
getMessage()
Returns detail message.
|
java.lang.Object[] |
getParameters()
Returns message parameters.
|
public JpsLocalizableException()
public JpsLocalizableException(java.lang.String msg)
msg
- messagepublic JpsLocalizableException(java.lang.Throwable cause)
cause
- causepublic JpsLocalizableException(java.lang.String msg, java.lang.Throwable cause)
msg
- messagecause
- causepublic JpsLocalizableException(JpsBundleType bundleType, java.lang.String errorCode)
bundleType
- resource bundle typeerrorCode
- error codepublic JpsLocalizableException(JpsBundleType bundleType, java.lang.String errorCode, java.lang.Object[] parameters)
bundleType
- resource bundle typeerrorCode
- error codeparameters
- message parameterspublic java.lang.String getErrorCode()
getErrorCode
in interface Localizable
public java.lang.Object[] getParameters()
getParameters
in interface Localizable
public JpsBundleType getBundleType()
getBundleType
in interface Localizable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage(java.util.Locale locale)
locale
- Locale