errors

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	Msg string
}

CustomError Custom error (who would guess)

func (*CustomError) Error

func (e *CustomError) Error() string

type ErouskaError

type ErouskaError interface {
	Code() rpccode.Code
	Error() string
}

ErouskaError Error with code.

type MalformedRequestError

type MalformedRequestError struct {
	Status rpccode.Code
	Msg    string
}

MalformedRequestError Error for malformed request

func (*MalformedRequestError) Code

func (mr *MalformedRequestError) Code() rpccode.Code

Code Code of the error.

func (*MalformedRequestError) Error

func (mr *MalformedRequestError) Error() string

type NotFoundError

type NotFoundError struct {
	Msg string
}

NotFoundError Error for not found

func (*NotFoundError) Code

func (mr *NotFoundError) Code() rpccode.Code

Code Code of the error.

func (*NotFoundError) Error

func (mr *NotFoundError) Error() string

type UnauthenticatedError

type UnauthenticatedError struct {
	Msg string
}

UnauthenticatedError Error for unauthenticated

func (*UnauthenticatedError) Code

func (mr *UnauthenticatedError) Code() rpccode.Code

Code Code of the error.

func (*UnauthenticatedError) Error

func (mr *UnauthenticatedError) Error() string

type UnknownError

type UnknownError struct {
	Msg string
}

UnknownError Unknown error

func (*UnknownError) Code

func (e *UnknownError) Code() rpccode.Code

Code Code of the error.

func (*UnknownError) Error

func (e *UnknownError) Error() string

Jump to

Keyboard shortcuts

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