Response.this

Construct a predefined error response to send to the client.

More...
  1. this(T id, JSONValue result)
  2. this(T id, StandardErrorCode error, JSONValue errData)
    struct Response
    package
    this
    (
    T
    )
    (
    T id
    ,,
    JSONValue errData = JSONValue()
    )

Parameters

id T

The ID of this response. This matches the relevant request.

error StandardErrorCode

The code of the standard error to send.

errData JSONValue

Any additional data to add to the error response.

Detailed Description

Template Parameters

T = The type of the response ID.

Meta