new DataResponse
DataResponse constructor. An instance of this class is passed as argument to an event listener, and must be used to respond to the remote adapter request, using the success method or the error method.
Method Summary
Method Detail
-
<inner> error
-
Sends an error response. The optional exception type parameter that can be used to issue a proper type of exceptiond depends on the event handled as described in the following table:
- subscribe: "subscription"
- unsubscribe: "subscription"
Parameters:
Name Type Argument Description exceptionMessage
String exception message exceptionType
String <optional>
exception type -
<inner> success
-
Sends a successful response.