org.mondemand

Class DefaultErrorHandler

Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends java.lang.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

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.

Method Details

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