Fuego Process API

fuego.papi.exception
Class ViewsNotAvailableException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byfuego.lang.DefaultException
              extended byfuego.papi.BatchOperationException
                  extended byfuego.papi.exception.ViewsNotAvailableException
All Implemented Interfaces:
Serializable

public class ViewsNotAvailableException
extends BatchOperationException

Class ViewsNotAvailableException This exception is thrown when not all the views requested are available, this could happen when not all the processes are available. The available View ids can be obtained through the method getAvailableViews(). 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

Constructor Summary
ViewsNotAvailableException(Map availableViews, Map notAvailableProcesses)
          Constructs a ViewsNotAvailableException.
 
Method Summary
 boolean failAllViews()
           
 String[] getAvailableViewIds()
          This method returns an array with the returned value for those available view ids.
 Map getAvailableViews()
           
 
Methods inherited from class fuego.papi.BatchOperationException
failAll, getAvailableObjects, getMessage, getNotAvailableObjects
 
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
 

Constructor Detail

ViewsNotAvailableException

public ViewsNotAvailableException(Map availableViews,
                                  Map notAvailableProcesses)
Constructs a ViewsNotAvailableException.

Parameters:
availableViews - A map of Views 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.
Method Detail

getAvailableViewIds

public String[] getAvailableViewIds()
This method returns an array with the returned value for those available view ids.

Returns:

getAvailableViews

public Map getAvailableViews()

failAllViews

public boolean failAllViews()

Fuego Process API

© Copyright 1996/2003 Fuego Inc. All Rights Reserved