ALBPM Process API

fuego.papi
Class BatchOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fuego.lang.DefaultException
              extended by fuego.papi.BatchOperationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationsNotAvailableException, AttachmentsNotAvailableException, FilterBatchOperationException, InstancesException, ProcessesNotAvailableException, TasksException

public abstract class BatchOperationException
extends fuego.lang.DefaultException

Class BatchOperationException Exception thrown when not every the object requested are available. This could happen when not all the engines are available.
When this exception is received the developer has the possibility to get the good values and the wrong values (every exception thrown for each failed operation).

Available objects :The objects ids can be obtained through the method getAvailableXXX() from each heir of BatchOperationException (Ex:InstancesException).
Not available objects: A map with the object Keys and the corresponding exceptions is returned by the method getNotAvailableXXX(). Each map value is the exception thrown with the message explaining why that operation failed.

See Also:
Serialized Form

Method Summary
 boolean failAll()
           
 Object[] getAvailableObjects()
          This method returns an array with the returned value for those available objects.
 String getMessage(Locale locale)
          Returns the composition of the user message, the administrative detail and the technical detail using the given locale.
 Map<String,Throwable> getNotAvailableObjects()
          This method returns a map containig the exception for each process which could not perform the corresponding operation.
 
Methods inherited from class fuego.lang.DefaultException
getCode, getDetail, getKey, getMessage, getStackTrace, getStackTraceString, getTechnicalDetail, getUserMessage, hasDetail
 
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
 

Method Detail

getAvailableObjects

public Object[] getAvailableObjects()
This method returns an array with the returned value for those available objects.


getMessage

public String getMessage(Locale locale)
Returns the composition of the user message, the administrative detail and the technical detail using the given locale. It also add the messages of the contained exceptions.

Overrides:
getMessage in class fuego.lang.DefaultException
Parameters:
locale - desired locale
Returns:
the localized exception message
See Also:
DefaultException.getMessage(), DefaultException.getUserMessage(Locale), DefaultException.getDetail(Locale), DefaultException.getTechnicalDetail(Locale)

getNotAvailableObjects

public Map<String,Throwable> getNotAvailableObjects()
This method returns a map containig the exception for each process which could not perform the corresponding operation.


failAll

public boolean failAll()

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved