org.mondemand
Class DefaultErrorHandler

java.lang.Object
  extended by 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

Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void handleError(String error)
          Writes MonDemand errors to standard error.
 void handleError(String error, Exception e)
          Writes MonDemand errors that have an associated exception to standard error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

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.