Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.flow
Class ActivityFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.amazonaws.services.simpleworkflow.flow.ActivityFailureException
All Implemented Interfaces:
Serializable

public class ActivityFailureException
extends 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

Constructor Summary
ActivityFailureException(String reason)
           
ActivityFailureException(String reason, String details)
          Construct exception with given arguments.
 
Method Summary
 String getDetails()
           
 String getReason()
           
 void setDetails(String details)
           
 String toString()
           
 
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
 

Constructor Detail

ActivityFailureException

public ActivityFailureException(String reason)

ActivityFailureException

public ActivityFailureException(String reason,
                                String details)
Construct exception with given arguments.

Parameters:
statusCode - value of status code field
details - application specific failure details
Method Detail

getDetails

public String getDetails()

setDetails

public void setDetails(String details)

getReason

public String getReason()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.