org.exolab.adaptx.util

Interface ErrorObserver

public interface ErrorObserver

A simple interface that allows warnings and errors to be reported.

Version: $Revision: 3829 $ $Date: 2003-09-09 00:42:42 -0400 (Tue, 09 Sep 2003) $

Author: Keith Visco

Field Summary
static intFATAL
static intNORMAL
static intWARNING
Method Summary
voidreceiveError(Exception exception)
Signals an error with normal level
voidreceiveError(Exception exception, String message)
Signals an error with normal level
voidreceiveError(Exception exception, int level)
Signals an error with the given error level
voidreceiveError(Exception exception, String message, int level)
Signals an error with the given error level
voidreceiveError(String message)
Signals an error with normal level
voidreceiveError(String message, int level)
Signals an error with the given error level

Field Detail

FATAL

public static final int FATAL

NORMAL

public static final int NORMAL

WARNING

public static final int WARNING

Method Detail

receiveError

public void receiveError(Exception exception)
Signals an error with normal level

Parameters: exception the Exception that caused the error

receiveError

public void receiveError(Exception exception, String message)
Signals an error with normal level

Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided.

receiveError

public void receiveError(Exception exception, int level)
Signals an error with the given error level

Parameters: exception the Exception that caused the error level the error level

receiveError

public void receiveError(Exception exception, String message, int level)
Signals an error with the given error level

Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided. level the error level

receiveError

public void receiveError(String message)
Signals an error with normal level

Parameters: message the error message

receiveError

public void receiveError(String message, int level)
Signals an error with the given error level

Parameters: message the error message level the error level