Fuego Process API

fuego.papi
Class BatchOperationException


java.lang.Object

  extended byjava.lang.Throwable

      extended byjava.lang.Exception

          extended byfuego.lang.DefaultException

              extended byfuego.papi.BatchOperationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationsNotAvailableException, AttachmentsNotAvailableException, FilterBatchOperationException, InstancesException, ProcessesNotAvailableException, TasksException, ViewsNotAvailableException

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 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, 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
 

Method Detail

getAvailableObjects


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

Returns:

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.

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 getNotAvailableObjects()
This method returns a map containig the exception for each process which could not perform the corresponding operation.

Returns:

failAll


public boolean failAll()

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved