Package com.sforce.async
Class AsyncApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sforce.async.AsyncApiException
-
- All Implemented Interfaces:
XMLizable,Serializable
public class AsyncApiException extends Exception implements XMLizable
AsyncApiException --- Since:
- 160
- Author:
- mcheenath
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncApiException()ConstructorAsyncApiException(String message, AsyncExceptionCode code)AsyncApiException(String message, AsyncExceptionCode code, Throwable th)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncExceptionCodegetExceptionCode()StringgetExceptionMessage()StringgetMessage()voidload(XmlInputStream __in, TypeMapper __typeMapper)load the fileds/children from the specified xml streamprotected voidloadFields(XmlInputStream __in, TypeMapper __typeMapper)voidsetExceptionCode(AsyncExceptionCode exceptionCode)voidsetExceptionMessage(String exceptionMessage)StringtoString()voidwrite(QName __element, XmlOutputStream __out, TypeMapper __typeMapper)write this instace as xml.protected voidwriteFields(XmlOutputStream __out, TypeMapper __typeMapper)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
AsyncApiException
public AsyncApiException()
Constructor
-
AsyncApiException
public AsyncApiException(String message, AsyncExceptionCode code, Throwable th)
-
AsyncApiException
public AsyncApiException(String message, AsyncExceptionCode code)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getExceptionCode
public AsyncExceptionCode getExceptionCode()
-
setExceptionCode
public void setExceptionCode(AsyncExceptionCode exceptionCode)
-
getExceptionMessage
public String getExceptionMessage()
-
setExceptionMessage
public void setExceptionMessage(String exceptionMessage)
-
write
public void write(QName __element, XmlOutputStream __out, TypeMapper __typeMapper) throws IOException
Description copied from interface:XMLizablewrite this instace as xml.- Specified by:
writein interfaceXMLizable- Parameters:
__element- xml element name__out- xml output stream__typeMapper- type mapper to be used- Throws:
IOException- failed to write xml
-
writeFields
protected void writeFields(XmlOutputStream __out, TypeMapper __typeMapper) throws IOException
- Throws:
IOException
-
load
public void load(XmlInputStream __in, TypeMapper __typeMapper) throws 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:
IOException- failed to read xmlConnectionException- failed to read/parser/bind xml
-
loadFields
protected void loadFields(XmlInputStream __in, TypeMapper __typeMapper) throws IOException, ConnectionException
- Throws:
IOExceptionConnectionException
-
-