public class LocalizedException
extends java.lang.Exception
Constructor and Description |
---|
LocalizedException() |
LocalizedException(java.lang.Class bundleClass,
java.lang.String bundleKey,
java.lang.String sourceID)
Deprecated.
11/05/2002;
Replaced by
LocalizedException( String bundleBaseName, ..., ClassLoader theBundleClassLoader ) . |
LocalizedException(java.lang.Class bundleClass,
java.lang.String bundleKey,
java.lang.String sourceID,
java.lang.Object[] substitutions)
Deprecated.
11/05/2002;
Replaced by
LocalizedException(String bundleBaseName, ..., ClassLoader theBundleClassLoader) . |
LocalizedException(java.lang.Class bundleClass,
java.lang.String bundleKey,
java.lang.String sourceID,
java.lang.String substitution)
Deprecated.
11/05/2002;
Replaced by
LocalizedException( String bundleBaseName, ..., ClassLoader theBundleClassLoader ) . |
LocalizedException(java.lang.Class bundleClass,
java.lang.String bundleKey,
java.lang.String sourceID,
java.lang.Throwable t,
java.lang.Object[] substitutions)
Deprecated.
11/05/2002;
Replaced by
LocalizedException(String bundleBaseName, ..., ClassLoader theBundleClassLoader) . |
LocalizedException(java.lang.String s)
Constructs a LocalizedException using the specified parameters as input.
|
LocalizedException(java.lang.String bundleBaseName,
java.lang.String bundleKey,
java.lang.ClassLoader theBundleClassLoader)
Constructs an LocalizedException using the specified parameters as
input.
|
LocalizedException(java.lang.String bundleBaseName,
java.lang.String bundleKey,
java.lang.Object[] substitutions,
java.lang.ClassLoader theBundleClassLoader)
Constructs an LocalizedException using the specified parameters as
input.
|
LocalizedException(java.lang.String bundleBaseName,
java.lang.String bundleKey,
java.lang.String substitution,
java.lang.ClassLoader theBundleClassLoader)
Constructs an LocalizedException using the specified parameters as
input.
|
LocalizedException(java.lang.String bundleBaseName,
java.lang.String bundleKey,
java.lang.Throwable t,
java.lang.Object[] substitutions,
java.lang.ClassLoader theBundleClassLoader)
Constructs an LocalizedException using the specified parameters as
input.
|
LocalizedException(java.lang.Throwable t)
Constructs an LocalizedException using the specified Throwable object as
input.
|
Modifier and Type | Method and Description |
---|---|
IData |
getErrorDetails()
Returns optional user-defined arbitrary data about the exception.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getLocalizedMessage(java.util.Locale locale) |
java.lang.String |
getMessage() |
java.lang.String |
getMsgId() |
java.lang.String |
getMsgOnly() |
java.lang.String |
getMsgOnly(java.util.Locale locale) |
java.lang.Throwable |
getWrappedException() |
void |
setErrorDetails(IData details)
Holds optional user-defined arbitrary data about the exception.
|
public LocalizedException()
public LocalizedException(java.lang.String s)
s
- A String displaying a detailed message.public LocalizedException(java.lang.Throwable t)
t
- A Throwable object that contains error information.public LocalizedException(java.lang.String bundleBaseName, java.lang.String bundleKey, java.lang.ClassLoader theBundleClassLoader)
bundleBaseName
- is the base name (ex: "com.mycompany.FooBundle_en_WIN"
would be "com.mycompany.FooBundle") of the resource bundle from which the
bundleKey value is to be extracted.bundleKey
- is the identifier used to map to a particular message or
message set that contained in the resource bundle pointed to by the
bundleBaseName param.theBundleClassLoader
- is the classloader that can find and load the
resource bundle pointed to by BundleBaseName.public LocalizedException(java.lang.String bundleBaseName, java.lang.String bundleKey, java.lang.String substitution, java.lang.ClassLoader theBundleClassLoader)
bundleBaseName
- is the base name (ex: "com.mycompany.FooBundle_en_WIN"
would be "com.mycompany.FooBundle") of the resource bundle from which the
bundleKey value is to be extracted.bundleKey
- is the identifier used to map to a particular message or
message set that contained in the resource bundle pointed to by the
bundleBaseName param.substitution
- are the message values that can be used in the case
that the value mapped to, from the bundleKey
is not found.theBundleClassLoader
- is the classloader that can find and load the
resource bundle pointed to by BundleBaseName.public LocalizedException(java.lang.String bundleBaseName, java.lang.String bundleKey, java.lang.Object[] substitutions, java.lang.ClassLoader theBundleClassLoader)
bundleBaseName
- is the base name (ex: "com.mycompany.FooBundle_en_WIN"
would be "com.mycompany.FooBundle") of the resource bundle from which the
bundleKey value is to be extracted.bundleKey
- is the identifier used to map to a particular message or
message set that contained in the resource bundle pointed to by the
bundleBaseName param.substitutions
- An Object array containing substitution values
that correspond to a the exception.theBundleClassLoader
- is the classloader that can find and load the
resource bundle pointed to by BundleBaseName.public LocalizedException(java.lang.String bundleBaseName, java.lang.String bundleKey, java.lang.Throwable t, java.lang.Object[] substitutions, java.lang.ClassLoader theBundleClassLoader)
bundleBaseName
- is the base name (ex: "com.mycompany.FooBundle_en_WIN"
would be "com.mycompany.FooBundle") of the resource bundle from which the
bundleKey value is to be extracted.t
- A Throwable object that contains error information.*bundleKey
- is the identifier used to map to a particular message or
message set that contained in the resource bundle pointed to by the
bundleBaseName param.substitutions
- An Object array containing substitution values
that correspond to a the exception.theBundleClassLoader
- is the classloader that can find and load the
resource bundle pointed to by BundleBaseName.public LocalizedException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceID)
LocalizedException( String bundleBaseName, ..., ClassLoader theBundleClassLoader )
.public LocalizedException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceID, java.lang.String substitution)
LocalizedException( String bundleBaseName, ..., ClassLoader theBundleClassLoader )
.public LocalizedException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceID, java.lang.Object[] substitutions)
LocalizedException(String bundleBaseName, ..., ClassLoader theBundleClassLoader)
.public LocalizedException(java.lang.Class bundleClass, java.lang.String bundleKey, java.lang.String sourceID, java.lang.Throwable t, java.lang.Object[] substitutions)
LocalizedException(String bundleBaseName, ..., ClassLoader theBundleClassLoader)
.public IData getErrorDetails()
public void setErrorDetails(IData details)
details
- IData containing information about the exception.public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.Throwable getWrappedException()
public java.lang.String getLocalizedMessage(java.util.Locale locale)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getMsgId()
public java.lang.String getMsgOnly()
public java.lang.String getMsgOnly(java.util.Locale locale)