org.mondemand
Class DefaultErrorHandler
java.lang.Object
org.mondemand.DefaultErrorHandler
- All Implemented Interfaces:
- ErrorHandler
public class DefaultErrorHandler
- extends Object
- implements ErrorHandler
This implements the ErrorHandler interface and provides the default
handler for MonDemand errors, which writes errors to standard error.
The user can override this using the MonDemand API, if they wanted to
log errors another way.
- Author:
- Michael Lum
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultErrorHandler
public DefaultErrorHandler()
handleError
public void handleError(String error)
- Writes MonDemand errors to standard error.
- Specified by:
handleError
in interface ErrorHandler
handleError
public void handleError(String error,
Exception e)
- Writes MonDemand errors that have an associated exception to
standard error.
- Specified by:
handleError
in interface ErrorHandler
Copyright © 2012. All Rights Reserved.