rpcerrors

package
v0.14.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ErrorToJSON

func ErrorToJSON(err error) []byte

func ToJSON added in v0.13.8

func ToJSON(err error) []byte

Types

type RPCError

type RPCError struct {
	// contains filtered or unexported fields
}

func NewAuthRequiredError

func NewAuthRequiredError() RPCError

func NewForbiddenError

func NewForbiddenError(e error) RPCError

func NewInternalError

func NewInternalError(e error) RPCError

func NewInvalidParamsError

func NewInvalidParamsError(e error) RPCError

func NewJSONParseError

func NewJSONParseError(e error) RPCError

func NewMethodNotAllowedError

func NewMethodNotAllowedError(e error) RPCError

func NewSDKError

func NewSDKError(e error) RPCError

func (RPCError) Code

func (e RPCError) Code() int

func (RPCError) Error

func (e RPCError) Error() string

func (RPCError) JSON

func (e RPCError) JSON() []byte

func (RPCError) Unwrap

func (e RPCError) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL