HiRPC.error

Creates error response sender from a receiver

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

Parameters

receiver const(Receiver)

HiRPC receiver

msg string

error text message

code int

error code

data Document

error data load

Return Value

Type: immutable(Sender)

Response error sender