Package com.sforce.async
Class AsyncApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sforce.async.AsyncApiException
-
- All Implemented Interfaces:
XMLizable,java.io.Serializable
public class AsyncApiException extends java.lang.Exception implements XMLizable
AsyncApiException --- Since:
- 160
- Author:
- mcheenath
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncApiException()ConstructorAsyncApiException(java.lang.String message, AsyncExceptionCode code)AsyncApiException(java.lang.String message, AsyncExceptionCode code, java.lang.Throwable th)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncExceptionCodegetExceptionCode()java.lang.StringgetExceptionMessage()java.lang.StringgetMessage()voidload(XmlInputStream __in, TypeMapper __typeMapper)load the fileds/children from the specified xml streamprotected voidloadFields(XmlInputStream __in, TypeMapper __typeMapper)voidsetExceptionCode(AsyncExceptionCode exceptionCode)voidsetExceptionMessage(java.lang.String exceptionMessage)java.lang.StringtoString()voidwrite(javax.xml.namespace.QName __element, XmlOutputStream __out, TypeMapper __typeMapper)write this instace as xml.protected voidwriteFields(XmlOutputStream __out, TypeMapper __typeMapper)
-
-
-
Constructor Detail
-
AsyncApiException
public AsyncApiException()
Constructor
-
AsyncApiException
public AsyncApiException(java.lang.String message, AsyncExceptionCode code, java.lang.Throwable th)
-
AsyncApiException
public AsyncApiException(java.lang.String message, AsyncExceptionCode code)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getExceptionCode
public AsyncExceptionCode getExceptionCode()
-
setExceptionCode
public void setExceptionCode(AsyncExceptionCode exceptionCode)
-
getExceptionMessage
public java.lang.String getExceptionMessage()
-
setExceptionMessage
public void setExceptionMessage(java.lang.String exceptionMessage)
-
write
public void write(javax.xml.namespace.QName __element, XmlOutputStream __out, TypeMapper __typeMapper) throws java.io.IOExceptionDescription copied from interface:XMLizablewrite this instace as xml.
-
writeFields
protected void writeFields(XmlOutputStream __out, TypeMapper __typeMapper) throws java.io.IOException
- Throws:
java.io.IOException
-
load
public void load(XmlInputStream __in, TypeMapper __typeMapper) throws java.io.IOException, ConnectionException
Description copied from interface:XMLizableload the fileds/children from the specified xml stream- Specified by:
loadin interfaceXMLizable- Parameters:
__in- xml input stream from which the data is read__typeMapper- type mapper to be used- Throws:
java.io.IOException- failed to read xmlConnectionException- failed to read/parser/bind xml
-
loadFields
protected void loadFields(XmlInputStream __in, TypeMapper __typeMapper) throws java.io.IOException, ConnectionException
- Throws:
java.io.IOExceptionConnectionException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-