fuego.papi.exception
Class ApplicationsNotAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
fuego.lang.DefaultException
fuego.papi.BatchOperationException
fuego.papi.exception.ApplicationsNotAvailableException
- All Implemented Interfaces:
- Serializable
public class ApplicationsNotAvailableException
- extends BatchOperationException
Class ApplicationsNotAvailableException
This exception is thrown when not all the applications (activities) requested are available, this
could happen when not all the processes are available.
The available applications can be obtained through the method
getAvailableApplications().
In addition, a map with the processId and the corresponding exception is returned by
the method getNotAvailableProcesses(). Here the key is the processId, and the value is
the exception thrown with the message explaining why that process is not available.
- See Also:
- Serialized Form
Methods inherited from class fuego.lang.DefaultException |
getCode, getDetail, getKey, getMessage, getStackTrace, getStackTraceString, getTechnicalDetail, getUserMessage, hasDetail |
ApplicationsNotAvailableException
public ApplicationsNotAvailableException(Activity[] availableActivities,
Map<String,Throwable> notAvailableProcesses)
- Constructs a ApplicationsNotAvailableException.
- Parameters:
availableActivities
- Is an array of activities containig all that objects which might be
returned by the specific method who is building this exception.notAvailableProcesses
- A map containing the processIds and the exceptions of all the
processes that are not available.
IMPORTANT: Ensure that all the exceptions stored in the Map
can be seen by the PAPI user.
ApplicationsNotAvailableException
public ApplicationsNotAvailableException(List<Activity> availableActivities,
Map<String,Throwable> notAvailableProcesses)
getAvailableApplications
public Activity[] getAvailableApplications()
- This method returns an array with the returned value for those available applications.
failAllProcesses
public boolean failAllProcesses()
© Copyright 1996/2005 Fuego Inc. All Rights Reserved