|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a fault response.
Send this fault response to the Interaction Server as the result of processing an ESP request.
To get a MILESPFaultResponse object, call the MILESPRequest.createFaultResponse()
method, as shown in the following code snippet.
MILESPFaultResponse faultResponse = myMILESPRequest.createFaultResponse();
The created response is associated with the request from which it was created.
Set parameters describing the fault response, as shown here:
//Setting fault parameters describing a database error
//In this example, DATABASE_ERROR_CODE = 53
faultResponse.setFaultCode(DATABASE_ERROR_CODE) ;
//In this example, DATABASE_ERROR_MSG = "Error occurred when updating database"
faultResponse.setFaultString(DATABASE_ERROR_MSG) ;
To send this response, call the inherited send() method as shown here:
//Sending the response
faultResponse.send() ;
MILESPRequest,
MILESPExtension| Method Summary | |
int |
getFaultCode()
Deprecated. as of 7.2.007.00. Please use getFaultCodeString() insted |
java.lang.String |
getFaultCodeString()
Gets user-defined error code. |
java.lang.String |
getFaultString()
Returns the user-defined fault string for this response. |
void |
setFaultCode(int faultCode)
Deprecated. as of 7.2.007.00. Please use setFaultCode(String) insted |
void |
setFaultCode(java.lang.String faultCode)
Sets the user-defined error code. |
void |
setFaultString(java.lang.String faultString)
Sets the user-defined fault string for this response. |
| Methods inherited from interface com.genesyslab.omsdk.mil.MILESPResponse |
send |
| Method Detail |
public void setFaultString(java.lang.String faultString)
Note: Sets this string before sending the response.
faultString - User-defined fault reason.public java.lang.String getFaultString()
public void setFaultCode(int faultCode)
setFaultCode(String) insted
faultCode - user-defined error code.public void setFaultCode(java.lang.String faultCode)
faultCode - user-defined error code.public int getFaultCode()
getFaultCodeString() insted
public java.lang.String getFaultCodeString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||