com.amazonaws.services.simpleworkflow.flow
Class ActivityFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.services.simpleworkflow.flow.ActivityFailureException
- All Implemented Interfaces:
- java.io.Serializable
public class ActivityFailureException
- extends java.lang.RuntimeException
This exception is expected to be thrown from
ActivityImplementation.execute(ActivityExecutionContext)
as it contains details property in the format that the activity client code
in the decider understands.
It is not expected to be thrown by the application level code.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActivityFailureException
public ActivityFailureException(java.lang.String reason)
ActivityFailureException
public ActivityFailureException(java.lang.String reason,
java.lang.String details)
- Construct exception with given arguments.
- Parameters:
statusCode
- value of status code fielddetails
- application specific failure details
getDetails
public java.lang.String getDetails()
setDetails
public void setDetails(java.lang.String details)
getReason
public java.lang.String getReason()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.