com.genesyslab.ail.exception
Class InvalidStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.genesyslab.ail.exception.RequestFailedException
              extended by com.genesyslab.ail.exception.PreconditionException
                  extended by com.genesyslab.ail.exception.InvalidStatusException
All Implemented Interfaces:
java.io.Serializable

public class InvalidStatusException
extends PreconditionException

Exception thrown when the status of an object was incorrect for the request.

See Also:
Serialized Form

Constructor Summary
InvalidStatusException(IdObject object, Enum status, Enum ex_status, java.lang.String comment)
          Constructor for this exception.
 
Method Summary
 Enum getExpectedStatus()
          Returns a status that would have been valid for this request.
 IdObject getObject()
          Returns the object, the status of which was invalid.
 Enum getStatus()
          Returns the status that was incorrect for this request.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidStatusException

public InvalidStatusException(IdObject object,
                              Enum status,
                              Enum ex_status,
                              java.lang.String comment)
Constructor for this exception.

Parameters:
object - the object, the status of which was invalid
status - the status that was invalid for this request
ex_status - an example status that would have been valid for this request
comment - comments for this exception
Method Detail

getObject

public IdObject getObject()
Returns the object, the status of which was invalid.


getStatus

public Enum getStatus()
Returns the status that was incorrect for this request.


getExpectedStatus

public Enum getExpectedStatus()
Returns a status that would have been valid for this request. Note that other statuses may be valid too.