org.gcube.vremanagement.resourcebroker.impl.planbuilders
Class PlanBuilderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by org.apache.axis.AxisFault
                      extended by org.oasis.wsrf.faults.BaseFaultType
                          extended by org.gcube.common.core.faults.GCUBEFault
                              extended by org.gcube.vremanagement.resourcebroker.impl.planbuilders.PlanBuilderException
All Implemented Interfaces:
java.io.Serializable

public class PlanBuilderException
extends org.gcube.common.core.faults.GCUBEFault

The only kind of exceptions that can be thrown during decision planning. Internally contains the message to return encapsulated inside the org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanResponse returned to the requester.

Author:
Daniele Strollo (ISTI-CNR)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
PlanBuilderException(PlanExceptionMessages errCode)
           
PlanBuilderException(PlanExceptionMessages errCode, PackageGroup position)
          If during the deployment phase the exception is thrown in a well precise PackageGroup node, it is passed here as parameter so that the error message of the returned org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanResponse gives a detailed information about the node where the failure has arisen.
PlanBuilderException(PlanExceptionMessages errCode, PackageGroup position, java.lang.String message)
          Similar to the PlanBuilderException(PlanExceptionMessages, PackageGroup) with an additional parameter giving additional information about the failure.
PlanBuilderException(PlanExceptionMessages errCode, java.lang.String message)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getMessage()
           
 PackageGroup getPosition()
           
 int hashCode()
           
 
Methods inherited from class org.gcube.common.core.faults.GCUBEFault
getDeserializer, getFaultMessage, getFaultType, getSerializer, getTypeDesc, remoteCause, setFaultMessage, setFaultType, toException, writeDetails
 
Methods inherited from class org.oasis.wsrf.faults.BaseFaultType
getDescription, getDescription, getErrorCode, getFaultCause, getFaultCause, getOriginator, getTimestamp, setDescription, setDescription, setErrorCode, setFaultCause, setFaultCause, setOriginator, setTimestamp
 
Methods inherited from class org.apache.axis.AxisFault
addFaultDetail, addFaultDetail, addFaultDetailString, addFaultSubCode, addFaultSubCodeAsString, addHeader, addHostname, addHostnameIfNeeded, clearFaultDetails, clearFaultSubCodes, clearHeaders, dump, dumpToString, getFaultActor, getFaultCode, getFaultDetails, getFaultNode, getFaultReason, getFaultRole, getFaultString, getFaultSubCodes, getHeaders, lookupFaultDetail, makeFault, output, printStackTrace, printStackTrace, removeFaultDetail, removeHostname, setFaultActor, setFaultCode, setFaultCode, setFaultCodeAsString, setFaultDetail, setFaultDetailString, setFaultNode, setFaultReason, setFaultRole, setFaultString, toString
 
Methods inherited from class java.rmi.RemoteException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlanBuilderException

public PlanBuilderException(PlanExceptionMessages errCode)

PlanBuilderException

public PlanBuilderException(PlanExceptionMessages errCode,
                            java.lang.String message)

PlanBuilderException

public PlanBuilderException(PlanExceptionMessages errCode,
                            PackageGroup position)
If during the deployment phase the exception is thrown in a well precise PackageGroup node, it is passed here as parameter so that the error message of the returned org.gcube.vremanagement.resourcebroker.utils.serialization.types.PlanResponse gives a detailed information about the node where the failure has arisen.

Parameters:
errCode - a pre-built error message PlanExceptionMessages to return to the requester inside the response
position - the PackageGroup node where the failure happened.

PlanBuilderException

public PlanBuilderException(PlanExceptionMessages errCode,
                            PackageGroup position,
                            java.lang.String message)
Similar to the PlanBuilderException(PlanExceptionMessages, PackageGroup) with an additional parameter giving additional information about the failure.

Method Detail

getPosition

public final PackageGroup getPosition()

getMessage

public final java.lang.String getMessage()
Overrides:
getMessage in class java.rmi.RemoteException

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class org.gcube.common.core.faults.GCUBEFault

hashCode

public final int hashCode()
Overrides:
hashCode in class org.gcube.common.core.faults.GCUBEFault