public class ActivityException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_RES_BUNDLE_NAME |
Constructor and Description |
---|
ActivityException(java.lang.String resourceKey,
java.lang.Object[] args,
java.lang.Throwable cause)
Construct an exception with resourceKey, optional parameters, and optional
cause, defaulting the resource bundle to the activity streaming
error bundle.
|
ActivityException(java.lang.String resBundleClassName,
java.lang.String resourceKey,
java.lang.Object[] args,
java.lang.Throwable cause,
java.lang.ClassLoader classLoader)
Construct a exception with a complete set of parameters and
explicit class loader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Get the cause of this exception.
|
java.lang.String |
getLocalizedMessage()
Method to compose the localized error message.
|
void |
printStackTrace()
Print this exception and its backtrace to the standard error stream.
|
public ActivityException(java.lang.String resourceKey, java.lang.Object[] args, java.lang.Throwable cause)
resourceKey
- Key to the error message within the activity streaming
error bundleargs
- optional arguments formatted into the msg via MessageFormatcause
- optional cause of this exceptionpublic ActivityException(java.lang.String resBundleClassName, java.lang.String resourceKey, java.lang.Object[] args, java.lang.Throwable cause, java.lang.ClassLoader classLoader)
resBundleClassName
- the fully qualified name of the resource bundle
with the error string.resourceKey
- the key of the resource within the resource bundleargs
- optional arguments formatted into the msg via MessageFormatcause
- optional cause of this exceptionclassLoader
- a reference for a class loaderpublic java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable