HiRPC.error

Creates error response sender from a receiver

  1. immutable(Sender) error(const(Receiver) receiver, string msg, int code, Document data)
  2. immutable(Sender) error(uint id, string msg, int code, Document data)
    struct HiRPC
    const
    immutable(Sender)
    error
    (
    const uint id
    ,
    string msg
    ,
    const int code = 0
    ,)

Parameters

msg string

error text message

code int

error code

data Document

error data load

Return Value

Type: immutable(Sender)

Response error sender