public class JpsLocalizableRuntimeException extends java.lang.RuntimeException implements Localizable
| Constructor and Description | 
|---|
| JpsLocalizableRuntimeException()Default constructor. | 
| JpsLocalizableRuntimeException(JpsBundleType bundleType, java.lang.String errorCode)The constructor takes resource bundle type and error code | 
| JpsLocalizableRuntimeException(JpsBundleType bundleType, java.lang.String errorCode, java.lang.Object[] parameters)The constructor takes resource bundle type, error code and message parameters. | 
| JpsLocalizableRuntimeException(java.lang.String msg)The constructor takes the message. | 
| JpsLocalizableRuntimeException(java.lang.String msg, java.lang.Throwable cause)The constructor takes the message and cause. | 
| JpsLocalizableRuntimeException(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 JpsLocalizableRuntimeException()
public JpsLocalizableRuntimeException(java.lang.String msg)
msg - messagepublic JpsLocalizableRuntimeException(java.lang.Throwable cause)
cause - causepublic JpsLocalizableRuntimeException(java.lang.String msg,
                                      java.lang.Throwable cause)
msg - messagecause - causepublic JpsLocalizableRuntimeException(JpsBundleType bundleType, java.lang.String errorCode)
bundleType - resource bundle typeerrorCode - error codepublic JpsLocalizableRuntimeException(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 Localizablepublic JpsBundleType getBundleType()
getBundleType in interface Localizablepublic java.lang.Object[] getParameters()
getParameters in interface Localizablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage(java.util.Locale locale)
locale - Locale