eteg.sinon.executor
Class ErrorResponse

java.lang.Object
  extended by eteg.sinon.executor.ErrorResponse

public class ErrorResponse
extends java.lang.Object

Class that represents the different type of actions to be taken after the handling of an error by method ErrorListener.onError(eteg.sinon.exception.SinonException).

Since:
0.0
Version:
$Revision: 1.2 $
Author:
Thiago H. de Paula Figueiredo, Last modified by $Author: thiagohp $
See Also:
ErrorListener, ErrorListener.onError(eteg.sinon.exception.SinonException)

Field Summary
static ErrorResponse RESUME_NEXT
          Constant that defines the action of ignoring the error.
static ErrorResponse RETRY
          Constant that defines the action of trying again.
static ErrorResponse STOP
          Constant that defines the action of stopping.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean isResumeNext()
          Returns true if the action to be taken is ignoring the error.
 boolean isRetry()
          Returns true if the action to be taken is trying again.
 boolean isStop()
          Returns true if the action to be taken is stopping.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOP

public static final ErrorResponse STOP
Constant that defines the action of stopping.


RETRY

public static final ErrorResponse RETRY
Constant that defines the action of trying again.


RESUME_NEXT

public static final ErrorResponse RESUME_NEXT
Constant that defines the action of ignoring the error.

Method Detail

isStop

public boolean isStop()
Returns true if the action to be taken is stopping.

Returns:
true if the action to be taken is stopping, false otherwise.

isRetry

public boolean isRetry()
Returns true if the action to be taken is trying again.

Returns:
true if the action to be taken is trying again, false otherwise.

isResumeNext

public boolean isResumeNext()
Returns true if the action to be taken is ignoring the error.

Returns:
true if the action to be taken is ignoring the error, false otherwise.

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2004-2005 ETEG Internet Ltda.. All Rights Reserved.