com.webmethods.caf.faces.data.error
Interface IErrorHandler

All Known Implementing Classes:
BaseErrorHandler, DbClientErrorHandler, GlueWSClientErrorHandler, WebserviceClientErrorHandler, WSClientInnerErrHandler, WSSClientErrorHandler

public interface IErrorHandler

Error handler interface consumed by service providers.


Method Summary
 Exception getException()
          Get last error.
 Object getSource()
          Get source of the last error.
 boolean handleError(Object source, Exception error)
          Handle error from service provider.
 void reset()
          Reset state of the error handler.
 

Method Detail

handleError

boolean handleError(Object source,
                    Exception error)
                    throws Exception
Handle error from service provider.

Returns:
True if error was handled by this handler, false otherwise.
Throws:
Exception

reset

void reset()
Reset state of the error handler. This method is usually called by service provider before invoking any service method which may produce handle error.


getSource

Object getSource()
Get source of the last error.

Returns:
The last error source.

getException

Exception getException()
Get last error.

Returns:
The last error.