Fuego Process API

fuego.papi.exception
Class TaskOperationException


java.lang.Object

  extended byjava.lang.Throwable

      extended byjava.lang.Exception

          extended byfuego.lang.DefaultException

              extended byfuego.papi.OperationException

                  extended byfuego.papi.ProcessOperationException

                      extended byfuego.papi.exception.InstanceOperationException

                          extended byfuego.papi.exception.TaskOperationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExternalTaskException, NoTasksRunningException, NotExternalTaskException, TaskAlreadySelectedException, TaskCompletedException, TaskFailedException, TaskNotRunningException, TaskNotUnselectedException

public class TaskOperationException
extends InstanceOperationException

A TaskOperationException is thrown when task operation error occurs. It could be the task has been aborted, it has invalid arguments or conversion of arguments, task has already been executed, task has already been selected.

See Also:
Serialized Form

Constructor Summary
TaskOperationException(String instanceId, String activityId, int taskNumber)
          Creates a new TaskOperationException with the given msgCode, instanceId and taskNumber.
TaskOperationException(String instanceId, String activityId, int taskNumber, Throwable cause)
          Creates a new TaskOperationException with the given taskNumber and the given cause.
 
Method Summary
 String getActivityId()
           
 int getTaskNumber()
           
 
Methods inherited from class fuego.papi.exception.InstanceOperationException
getInstanceId
 
Methods inherited from class fuego.papi.ProcessOperationException
getProcessId
 
Methods inherited from class fuego.papi.OperationException
wrap
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, getMessage, getStackTrace, getStackTraceString, getTechnicalDetail, getUserMessage, hasDetail, hasTechnicalDetail
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskOperationException


public TaskOperationException(String instanceId,
                              String activityId,
                              int taskNumber,
                              Throwable cause)
Creates a new TaskOperationException with the given taskNumber and the given cause.

Parameters:
instanceId - Instance identification.
activityId - Activity identification.
taskNumber - Task number.
cause - The original cause for the task failure.

TaskOperationException


public TaskOperationException(String instanceId,
                              String activityId,
                              int taskNumber)
Creates a new TaskOperationException with the given msgCode, instanceId and taskNumber.

Parameters:
instanceId - Instance identification.
activityId - Activity identification.
taskNumber - Task number.
Method Detail

getActivityId


public String getActivityId()

getTaskNumber


public int getTaskNumber()

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved