ptolemy.actor.gui
Class ConfigurationApplication.IgnoreErrorHandler

java.lang.Object
  extended by ptolemy.actor.gui.ConfigurationApplication.IgnoreErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
ConfigurationApplication

public static class ConfigurationApplication.IgnoreErrorHandler
extends java.lang.Object
implements ErrorHandler

Error Handler that ignore errors.


Field Summary
 
Fields inherited from interface ptolemy.moml.ErrorHandler
CANCEL, CONTINUE, RETHROW
 
Constructor Summary
ConfigurationApplication.IgnoreErrorHandler()
           
 
Method Summary
 void enableErrorSkipping(boolean enable)
          Enable or disable skipping of errors.
 int handleError(java.lang.String element, NamedObj context, java.lang.Throwable exception)
          Ignore the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationApplication.IgnoreErrorHandler

public ConfigurationApplication.IgnoreErrorHandler()
Method Detail

enableErrorSkipping

public void enableErrorSkipping(boolean enable)
Enable or disable skipping of errors. This method does nothing.

Specified by:
enableErrorSkipping in interface ErrorHandler
Parameters:
enable - True to enable skipping, false to disable.

handleError

public int handleError(java.lang.String element,
                       NamedObj context,
                       java.lang.Throwable exception)
Ignore the error.

Specified by:
handleError in interface ErrorHandler
Parameters:
element - The XML element that triggered the error.
context - The container object for the element.
exception - The exception that was thrown.
Returns:
CONTINUE to request skipping this element.