|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
org.apache.axis.AxisFault
org.oasis.wsrf.faults.BaseFaultType
org.gcube.common.core.faults.GCUBEFault
public class GCUBEFault
Root of all remote faults with GCUBE semantics.
| Field Summary |
|---|
| Fields inherited from class org.apache.axis.AxisFault |
|---|
faultActor, faultCode, faultDetails, faultHeaders, faultNode, faultString, faultSubCode, log |
| Fields inherited from class java.rmi.RemoteException |
|---|
detail |
| Constructor Summary | |
|---|---|
GCUBEFault()
Creates a new instance. |
|
GCUBEFault(Calendar timestamp,
org.apache.axis.message.addressing.EndpointReferenceType originator,
org.oasis.wsrf.faults.BaseFaultTypeErrorCode errorCode,
org.oasis.wsrf.faults.BaseFaultTypeDescription[] description,
org.oasis.wsrf.faults.BaseFaultType[] faultCause,
String faultMessage,
String faultType)
Creates a new fault from various parameters. |
|
GCUBEFault(String... msg)
Creates an instance with an optional message. |
|
GCUBEFault(Throwable e,
String... msg)
Creates an instance from a given cause and, optionally, a message. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer |
protected GCUBEException |
getException(String msg,
Throwable cause)
Returns an exception corresponding to this fault type. |
String |
getFaultMessage()
Returns the fault message. |
String |
getFaultType()
Returns the fault type. |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get a sustom Serializer |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Returns the type description |
int |
hashCode()
|
Throwable |
remoteCause()
Returns the remote cause of the fault as a Throwable |
void |
setFaultMessage(String faultMessage)
Sets the fault message. |
void |
setFaultType(String faultType)
Sets the fault type. |
GCUBEException |
toException()
Converts the fault into a corresponding GCUBEException. |
void |
writeDetails(QName qname,
org.apache.axis.encoding.SerializationContext context)
|
| 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, initFaultSubCodes, 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, getMessage |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GCUBEFault()
public GCUBEFault(Calendar timestamp,
org.apache.axis.message.addressing.EndpointReferenceType originator,
org.oasis.wsrf.faults.BaseFaultTypeErrorCode errorCode,
org.oasis.wsrf.faults.BaseFaultTypeDescription[] description,
org.oasis.wsrf.faults.BaseFaultType[] faultCause,
String faultMessage,
String faultType)
timestamp - the timestamp.originator - the originat.errorCode - the error code.description - the description.faultCause - the cause.faultMessage - the message.faultType - the type.
public GCUBEFault(Throwable e,
String... msg)
e - the causemsg - (optional) message.public GCUBEFault(String... msg)
msg - (optional) the message.| Method Detail |
|---|
public String getFaultMessage()
public void setFaultMessage(String faultMessage)
faultMessage - the message.public String getFaultType()
public void setFaultType(String faultType)
faultType - the type.public boolean equals(Object obj)
equals in class org.oasis.wsrf.faults.BaseFaultTypepublic int hashCode()
hashCode in class org.oasis.wsrf.faults.BaseFaultTypepublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
public void writeDetails(QName qname,
org.apache.axis.encoding.SerializationContext context)
throws IOException
writeDetails in class org.oasis.wsrf.faults.BaseFaultTypeIOExceptionpublic Throwable remoteCause()
Throwable
ThrowableFaultUtils.remoteCause(GCUBEFault)public GCUBEException toException()
GCUBEException.
protected GCUBEException getException(String msg,
Throwable cause)
msg - the message of the exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||