com.sforce.soap.partner.fault
Class ApiFault

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 com.sforce.soap.partner.fault.ApiFault
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ApiQueryFault, InvalidIdFault, InvalidNewPasswordFault, InvalidQueryLocatorFault, LoginFault, UnexpectedErrorFault

public class ApiFault
extends org.apache.axis.AxisFault
implements java.io.Serializable

See Also:
Serialized Form

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
ApiFault()
           
ApiFault(ExceptionCode exceptionCode, java.lang.String exceptionMessage)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 ExceptionCode getExceptionCode()
          Gets the exceptionCode value for this ApiFault.
 java.lang.String getExceptionMessage()
          Gets the exceptionMessage value for this ApiFault.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setExceptionCode(ExceptionCode exceptionCode)
          Sets the exceptionCode value for this ApiFault.
 void setExceptionMessage(java.lang.String exceptionMessage)
          Sets the exceptionMessage value for this ApiFault.
 void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context)
          Writes the exception data to the faultDetails
 
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

ApiFault

public ApiFault()

ApiFault

public ApiFault(ExceptionCode exceptionCode,
                java.lang.String exceptionMessage)
Method Detail

getExceptionCode

public ExceptionCode getExceptionCode()
Gets the exceptionCode value for this ApiFault.

Returns:
exceptionCode

setExceptionCode

public void setExceptionCode(ExceptionCode exceptionCode)
Sets the exceptionCode value for this ApiFault.

Parameters:
exceptionCode -

getExceptionMessage

public java.lang.String getExceptionMessage()
Gets the exceptionMessage value for this ApiFault.

Returns:
exceptionMessage

setExceptionMessage

public void setExceptionMessage(java.lang.String exceptionMessage)
Sets the exceptionMessage value for this ApiFault.

Parameters:
exceptionMessage -

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer


writeDetails

public void writeDetails(javax.xml.namespace.QName qname,
                         org.apache.axis.encoding.SerializationContext context)
                  throws java.io.IOException
Writes the exception data to the faultDetails

Overrides:
writeDetails in class org.apache.axis.AxisFault
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.