ActivityException

Construct a exception with a complete set of parameters and explicit class loader. Class loader parameter may be neccesary for cases when the service Exception implemetation is loaded in one name space and the actual resource bundle is in a different name space. In such cases, get the current classloader from the calling class and pass it as argument to avoid missing resource bundle exception.

Parameters:

resBundleClassName - the fully qualified name of the resource bundle with the error string.

resourceKey - the key of the resource within the resource bundle

args - optional arguments formatted into the msg via MessageFormat

cause - optional cause of this exception

classLoader - a reference for a class loader

Method Detail

getCause

public java.lang.Throwable getCause()

Get the cause of this exception.

Overrides:

getCause in class java.lang.Throwable

Returns:

the possibly null cause

printStackTrace

public void printStackTrace()

Print this exception and its backtrace to the standard error stream. Note: it is necessary to override this method (and not just the two that follow) because the JDK implementation of Throwable.printStackTrace() calls one of its own private methods instead of printStackTrace(PrintStream stream)!