public final class ExceptionHandler
extends java.lang.Object
Additional methods are provided for displaying the dialog box separately.
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultUncaughtExceptionDialog(java.lang.Object contextObject)
Add an exception handler to the application that displays a dialog that
allows the user to send an exception report to PA.
|
static void |
addDefaultUncaughtExceptionDialog(java.lang.Object contextObject,
BinaryInfo binary)
Add an exception handler to the application that displays a dialog that
allows the user to send an exception report to PA.
|
static void |
addDefaultUncaughtExceptionHandler()
Add an exception handler to the application that sends an exception
report to PA.
|
static void |
addDefaultUncaughtExceptionHandler(BinaryInfo binary)
Add an exception handler to the application that sends an exception
report to PA.
|
static void |
addThreadUncaughtExceptionDialog(java.lang.Object contextObject)
Add an exception handler to the current thread that displays a dialog
that allows the user to send an exception report to PA.
|
static void |
addThreadUncaughtExceptionDialog(java.lang.Object contextObject,
BinaryInfo binary)
Add an exception handler to the current thread that displays a dialog
that allows the user to send an exception report to PA.
|
static void |
addThreadUncaughtExceptionHandler()
Add an exception handler to the current thread that sends an exception
report to PA.
|
static void |
addThreadUncaughtExceptionHandler(BinaryInfo binary)
Add an exception handler to the current thread that sends an exception
report to PA.
|
static void |
showDialog(java.lang.Throwable exception)
Display an exception dialog that allows the user to send an uncaught
exception report to PA.
|
static void |
showDialog(java.lang.Throwable exception,
int type,
java.lang.Object contextObject)
Display an exception dialog that allows the user to send an exception
report to PA.
|
static void |
showDialog(java.lang.Throwable exception,
int type,
java.lang.Object contextObject,
BinaryInfo binary,
java.util.Properties properties)
Display an exception dialog that allows the user to send an exception
report to PA.
|
static void |
showDialog(java.lang.Throwable exception,
int type,
java.lang.Object contextObject,
java.util.Properties properties)
Display an exception dialog that allows the user to send an exception
report to PA.
|
public static void showDialog(java.lang.Throwable exception)
Error
then the
application will be terminated. If an application session is not running,
a session will be started to send this exception message, and then
stopped.exception
- the exception to be reportedpublic static void showDialog(java.lang.Throwable exception, int type, java.lang.Object contextObject)
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped.exception
- the exception to be reportedtype
- the context type of the exception:
RuntimeIntelligence.EXCEPTION_THROWN
- the
exception that is being thrownRuntimeIntelligence.EXCEPTION_CAUGHT
- the
exception that was caughtRuntimeIntelligence.EXCEPTION_UNCAUGHT
- the
exception caught at the top levelcontextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.public static void showDialog(java.lang.Throwable exception, int type, java.lang.Object contextObject, java.util.Properties properties)
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped. After
processing, the exception will be passed on to the previously registered
handler if it exists.exception
- the exception to be reportedtype
- the context type of the exception:
RuntimeIntelligence.EXCEPTION_THROWN
- the
exception that is being thrownRuntimeIntelligence.EXCEPTION_CAUGHT
- the
exception that was caughtRuntimeIntelligence.EXCEPTION_UNCAUGHT
- the
exception caught at the top levelcontextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.properties
- properties to be sent with the exception report. May be
null
.public static void showDialog(java.lang.Throwable exception, int type, java.lang.Object contextObject, BinaryInfo binary, java.util.Properties properties)
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped.exception
- the exception to be reportedtype
- the context type of the exception:
RuntimeIntelligence.EXCEPTION_THROWN
- an
exception that is being thrownRuntimeIntelligence.EXCEPTION_CAUGHT
- an
exception that was caughtRuntimeIntelligence.EXCEPTION_UNCAUGHT
- an
exception caught at the top levelcontextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.binary
- information about the application. May be null
properties
- properties to be sent with the exception report. May be
null
.public static void addThreadUncaughtExceptionDialog(java.lang.Object contextObject)
Error
then the application will be terminated. If an application
session is not running, a session will be started to send this exception
message, and then stopped. After processing, the exception will be passed
on to the previously registered handler if it exists.contextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.public static void addThreadUncaughtExceptionDialog(java.lang.Object contextObject, BinaryInfo binary)
Error
then the application will be terminated. If an application
session is not running, a session will be started to send this exception
message, and then stopped. After processing, the exception will be passed
on to the previously registered handler if it exists.contextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.binary
- information about the application. May be null
public static void addThreadUncaughtExceptionHandler()
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped. After
processing, the exception will be passed on to the previously registered
handler if it exists.public static void addThreadUncaughtExceptionHandler(BinaryInfo binary)
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped. After
processing, the exception will be passed on to the previously registered
handler if it exists.binary
- information about the application. May be null
public static void addDefaultUncaughtExceptionDialog(java.lang.Object contextObject)
Error
then the application will be terminated. If an application
session is not running, a session will be started to send this exception
message, and then stopped. After processing, the exception will be passed
on to the previously registered handler if it exists.contextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.public static void addDefaultUncaughtExceptionDialog(java.lang.Object contextObject, BinaryInfo binary)
Error
then the application will be terminated. If an application
session is not running, a session will be started to send this exception
message, and then stopped. After processing, the exception will be passed
on to the previously registered handler if it exists.contextObject
- a context object typically a UI component used to
determine the location to display the dialog. May be
null
.binary
- information about the application. May be null
public static void addDefaultUncaughtExceptionHandler()
Error
then the application
will be terminated. After processing, the exception will be passed on to
the previously registered handler if it exists. If an application session
is not running, a session will be started to send this exception message,
and then stopped.public static void addDefaultUncaughtExceptionHandler(BinaryInfo binary)
Error
then the application
will be terminated. If an application session is not running, a session
will be started to send this exception message, and then stopped. After
processing, the exception will be passed on to the previously registered
handler if it exists.binary
- information about the application. May be null