com.sforce.async
Class AsyncApiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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
AsyncApiException()
          Constructor
AsyncApiException(String message, AsyncExceptionCode code)
           
AsyncApiException(String message, AsyncExceptionCode code, Throwable th)
           
 
Method Summary
 AsyncExceptionCode getExceptionCode()
           
 String getExceptionMessage()
           
 String getMessage()
           
 void load(XmlInputStream __in, TypeMapper __typeMapper)
          load the fileds/children from the specified xml stream
protected  void loadFields(XmlInputStream __in, TypeMapper __typeMapper)
           
 void setExceptionCode(AsyncExceptionCode exceptionCode)
           
 void setExceptionMessage(String exceptionMessage)
           
 String toString()
           
 void write(QName __element, XmlOutputStream __out, TypeMapper __typeMapper)
          write this instace as xml.
protected  void writeFields(XmlOutputStream __out, TypeMapper __typeMapper)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
getMessage in class Throwable

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: XMLizable
write this instace as xml.

Specified by:
write in interface XMLizable
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: XMLizable
load the fileds/children from the specified xml stream

Specified by:
load in interface XMLizable
Parameters:
__in - xml input stream from which the data is read
__typeMapper - type mapper to be used
Throws:
IOException - failed to read xml
ConnectionException - failed to read/parser/bind xml

loadFields

protected void loadFields(XmlInputStream __in,
                          TypeMapper __typeMapper)
                   throws IOException,
                          ConnectionException
Throws:
IOException
ConnectionException

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2013. All Rights Reserved.