JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource.util
Class ExceptionManager

java.lang.Object
  |
  +--com.klg.jclass.datasource.util.ExceptionManager
All Implemented Interfaces:
ExceptionHandler, Serializable

public class ExceptionManager
extends Object
implements ExceptionHandler, Serializable

This class acts as both a repository for the current datasource exception handler and as the default implemention of a handler. The default implementation puts up a message dialog with the message.

See Also:
Serialized Form

Field Summary
protected static com.klg.jclass.datasource.util.ExceptionHandler handler
           
protected  boolean writeToConsole
           
 
Constructor Summary
ExceptionManager()
           
ExceptionManager(boolean write_to_console)
           
 
Method Summary
static com.klg.jclass.datasource.util.ExceptionHandler getHandler()
          Return the ExceptionHandler to used when the datasource throws an exception
 void processException(Component component, com.klg.jclass.datasource.DataModelException ex)
          This method is invoked by an datamodel exception generated by a user action on a databound component.
static void setHandler(com.klg.jclass.datasource.util.ExceptionHandler h)
          Set the ExceptionHandler to use when the datasource throws an exception
 void showException(Component component, String title, String message)
          This method is invoked by an exception generated by a user action on a databound component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

protected static com.klg.jclass.datasource.util.ExceptionHandler handler

writeToConsole

protected boolean writeToConsole
Constructor Detail

ExceptionManager

public ExceptionManager()

ExceptionManager

public ExceptionManager(boolean write_to_console)
Method Detail

getHandler

public static final com.klg.jclass.datasource.util.ExceptionHandler getHandler()
Return the ExceptionHandler to used when the datasource throws an exception


setHandler

public static final void setHandler(com.klg.jclass.datasource.util.ExceptionHandler h)
Set the ExceptionHandler to use when the datasource throws an exception


showException

public void showException(Component component,
                          String title,
                          String message)
This method is invoked by an exception generated by a user action on a databound component. This is the default implementation and it puts up a dialog window when needed.

Specified by:
showException in interface ExceptionHandler

processException

public void processException(Component component,
                             com.klg.jclass.datasource.DataModelException ex)
This method is invoked by an datamodel exception generated by a user action on a databound component. This is the default implementation and it puts up a dialog window when needed.

Specified by:
processException in interface ExceptionHandler

Copyright © 2004 Quest Software Inc..
All rights reserved.