SetErrorResponse

Set a non-XML error response as transaction result that is returned to the client.

SetErrorResponse(code, strError)

Parameters

  • code : [in] Integer specifying error code.
  • strError : [in] String containing the error text.

 

Return Values

none

 

Remarks

With SetClientResponse you indicate SUCCESS for the entire client transaction. With SetErrorResponse you indicate transaction FAILURE. If both functions are executed in a script, SetErrorResponse has precedence. 

See also Error Reporting.

 

Example

SetErrorResponse(code, strError);