ACP.Error (agent_client_protocol v0.1.0)

Copy Markdown View Source

JSON-RPC error object.

Summary

Types

t()

@type t() :: %ACP.Error{code: integer(), data: any() | nil, message: String.t()}

Functions

auth_required()

auth_required_code()

code_name(code)

Convert an ErrorCode integer to its name atom.

from_json(map)

internal_error()

internal_error_code()

invalid_params()

invalid_params_code()

invalid_request()

invalid_request_code()

method_not_found()

method_not_found_code()

new(code, message)

parse_error()

parse_error_code()

resource_not_found(uri \\ nil)

resource_not_found_code()

to_json(err)

with_data(err, data)