ca.sqlpower.architect.swingui
Class ExceptionHandler

java.lang.Object
  extended by ca.sqlpower.architect.swingui.ExceptionHandler
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class ExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

The ExceptionHandler catches uncaught exceptions and handles them gracefully by showing an error message dialog and posting a report to SQL Power.


Field Summary
static java.lang.String DEFAULT_REPORT_URL
          The URL to post the error report to if the system property that overrides it isn't defined.
 
Constructor Summary
ExceptionHandler(ArchitectSwingSessionContext context)
          The exception handler is used for handling uncaught exceptions.
 
Method Summary
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          The uncaughtException method displays an exception dialog to the user and posts a report to SQL Power at the url specified in the system properties (or the default if not specified).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REPORT_URL

public static final java.lang.String DEFAULT_REPORT_URL
The URL to post the error report to if the system property that overrides it isn't defined.

See Also:
Constant Field Values
Constructor Detail

ExceptionHandler

public ExceptionHandler(ArchitectSwingSessionContext context)
The exception handler is used for handling uncaught exceptions.

Parameters:
context - The context is used to get additional information about the state of the Architect when an uncaught exception is caught here.
Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
The uncaughtException method displays an exception dialog to the user and posts a report to SQL Power at the url specified in the system properties (or the default if not specified).

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca