|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.util.DefaultErrorHandler<X>
X
- public class DefaultErrorHandler<X extends Throwable>
Default implementation of the ErrorHandler
interface.
The default behaviour is:
ErrorHandler
Constructor Summary | |
---|---|
DefaultErrorHandler()
|
Method Summary | |
---|---|
void |
clear()
|
void |
error(X e)
Receive notification of a recoverable error. |
void |
fatalError(X e)
Receive notification of an unrecoverable error. |
boolean |
hasError()
|
void |
warning(X e)
Receive notification of a warning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultErrorHandler()
Method Detail |
---|
public void warning(X e) throws X extends Throwable
ErrorHandler
Components will use this method to report conditions that are not errors or fatal errors The default behavior is to take no action. The component should continue to provide normal operation events after invoking this method: it should still be possible for the application to continue normal operation.
warning
in interface ErrorHandler<X extends Throwable>
e
- - The warning information encapsulated in an exception of type E
.
X extends Throwable
public void error(X e) throws X extends Throwable
ErrorHandler
Components will use this method to report conditions that are not fatal errors. The default behavior is to take no action. The component should continue to provide normal operation events after invoking this method: it should still be possible for the application to continue normal operation. If the component cannot continue normal operation is should throw a fatal error.
error
in interface ErrorHandler<X extends Throwable>
e
- - The error information encapsulated in an exception of type E
.
X extends Throwable
public void fatalError(X e) throws X extends Throwable
ErrorHandler
Components will use this method to report conditions that are fatal errors. The default behavior is to rethrow the exception. The application should not assume that the component will continue normal operation after a fatal error. The application should continue (if at all) only for the sake of collecting addition error messages.
fatalError
in interface ErrorHandler<X extends Throwable>
e
- - The error information encapsulated in an exception of type E
.
X extends Throwable
public void clear()
public boolean hasError()
|
Protege 3.4.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |