Package ptolemy.actor.gui
Class ConfigurationApplication.IgnoreErrorHandler
- java.lang.Object
-
- 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
Constructors Constructor Description IgnoreErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableErrorSkipping(boolean enable)Enable or disable skipping of errors.inthandleError(java.lang.String element, NamedObj context, java.lang.Throwable exception)Ignore the error.
-
-
-
Method Detail
-
enableErrorSkipping
public void enableErrorSkipping(boolean enable)
Enable or disable skipping of errors. This method does nothing.- Specified by:
enableErrorSkippingin interfaceErrorHandler- 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:
handleErrorin interfaceErrorHandler- 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.
-
-