org.exolab.adaptx.util
Class ErrorObserverAdapter
java.lang.Object
org.exolab.adaptx.util.ErrorObserverAdapter
- ErrorObserver
public abstract class ErrorObserverAdapter
extends java.lang.Object
An adapter which allows adding and removing error observers
Version:
- Keith Visco
void | addErrorObserver(ErrorObserver observer) - Adds the given ErrorObserver to this DefaultObserver
|
void | receiveError(Exception exception) - Signals an error with normal level
|
void | receiveError(Exception exception, String message) - Signals an error with normal level
|
void | receiveError(Exception exception, String message, int level) - Signals an error with the given error level
|
void | receiveError(Exception exception, int level) - Signals an error with the given error level
|
void | receiveError(String message) - Signals an error message with normal level
|
void | receiveError(String message, int level) - Signals an error with the given error level
|
void | removeAllErrorObservers() - Removes all the ErrorObservers from the cascading
ErrorObserver list
|
void | removeErrorObserver(ErrorObserver observer) - Removes the given ErrorObserver from the cascading
ErrorObserver list
|
addErrorObserver
public void addErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to this DefaultObserver
observer
- the ErrorObserver to add
receiveError
public void receiveError(Exception exception)
Signals an error with normal level
- receiveError in interface ErrorObserver
exception
- the Exception that caused the error
receiveError
public void receiveError(Exception exception,
String message)
Signals an error with normal level
- receiveError in interface ErrorObserver
exception
- the Exception that caused the errormessage
- an option message, used when additional information
can be provided.
receiveError
public void receiveError(Exception exception,
String message,
int level)
Signals an error with the given error level
- receiveError in interface ErrorObserver
exception
- the Exception that caused the errormessage
- an option message, used when additional information
can be provided.level
- the error level
receiveError
public void receiveError(Exception exception,
int level)
Signals an error with the given error level
- receiveError in interface ErrorObserver
exception
- the Exception that caused the errorlevel
- the error level
receiveError
public void receiveError(String message)
Signals an error message with normal level
- receiveError in interface ErrorObserver
message
- the error message
receiveError
public void receiveError(String message,
int level)
Signals an error with the given error level
- receiveError in interface ErrorObserver
message
- the error messagelevel
- the error level
removeAllErrorObservers
public void removeAllErrorObservers()
Removes all the ErrorObservers from the cascading
ErrorObserver list
removeErrorObserver
public void removeErrorObserver(ErrorObserver observer)
Removes the given ErrorObserver from the cascading
ErrorObserver list
observer
- the ErrorObserver to remove