org.yasl.arch.impl.errors
Class YASLErrorHandlerImpl
java.lang.Object
org.yasl.arch.impl.errors.YASLErrorHandlerImpl
- All Implemented Interfaces:
- YASLErrorHandler
- public class YASLErrorHandlerImpl
- extends Object
- implements YASLErrorHandler
This is the default implementation of the YASLErrorHandler interface.
Applications should implement their own version of this class to
log and report errors to the user.
Method Summary |
void |
handleAppError(Exception ex)
Provides a mechanism to log and/or display error information to the
user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YASLErrorHandlerImpl
public YASLErrorHandlerImpl(YASLApplicationType appType)
- Creates an instance of the default error handler.
- Parameters:
appType
- YASLApplicationType
handleAppError
public void handleAppError(Exception ex)
- Provides a mechanism to log and/or display error information to the
user.
For comandline applications, the stacktrace is sent to standard error.
For Applets and Swing applications, the message associated with the
exception is displayed in a message dialog and the stacktrace is sent
to standard error.
- Specified by:
handleAppError
in interface YASLErrorHandler
- Parameters:
ex
- Exception