|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.plugins.DefaultErrorHandler
Default implementation of ErrorHandler for convenience. Collects all errors and warnings in two lists and shows them on explicit request
Constructor Summary | |
DefaultErrorHandler(String action)
Constructor |
Method Summary | |
boolean |
hadError()
Returns whether an error occured. |
void |
handleError(int type,
String title,
String message)
Handles an error. |
void |
printErrors()
Shows the errors to the user in a dialog. |
void |
printWarnings()
Shows the warnings to the user in a dialog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultErrorHandler(String action)
action
- a description of the action where errors occured. Should be
localized.Method Detail |
public void handleError(int type, String title, String message)
ErrorHandler
handleError
in interface ErrorHandler
type
- the type of the errortitle
- a title for the message (needs not be used by the handler)message
- the error messageNotification
public void printWarnings()
public void printErrors()
public boolean hadError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |