Package com.sforce.async
Class Error
- java.lang.Object
-
- com.sforce.async.Error
-
-
Constructor Summary
Constructors Constructor Description Error()ConstructorError(String[] fields, String message, StatusCode statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getFields()StringgetMessage()StatusCodegetStatusCode()voidload(XmlInputStream __in, TypeMapper __typeMapper)load the fileds/children from the specified xml streamprotected voidloadFields(XmlInputStream __in, TypeMapper __typeMapper)voidsetFields(String[] fields)voidsetMessage(String message)voidsetStatusCode(StatusCode statusCode)StringtoString()voidwrite(QName __element, XmlOutputStream __out, TypeMapper __typeMapper)write this instace as xml.protected voidwriteFields(XmlOutputStream __out, TypeMapper __typeMapper)
-
-
-
Constructor Detail
-
Error
public Error()
Constructor
-
Error
public Error(String[] fields, String message, StatusCode statusCode)
-
-
Method Detail
-
getFields
public String[] getFields()
-
setFields
public void setFields(String[] fields)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getStatusCode
public StatusCode getStatusCode()
-
setStatusCode
public void setStatusCode(StatusCode statusCode)
-
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
-
-