errors

package
v0.0.0-...-e18ea6a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorByCode

func GetErrorByCode(code int) error

Retrieves error based on code

Types

type BadCall

type BadCall BaseError

When server sends malformed request (aka code 400)

func (*BadCall) Error

func (s *BadCall) Error() string

type BadURI

type BadURI BaseError

Fired amid bad URI

func (*BadURI) Error

func (s *BadURI) Error() string

type BaseError

type BaseError struct {
	Message string
}

Base error structure

func (*BaseError) Error

func (s *BaseError) Error() string

type CallConflicts

type CallConflicts BaseError

When client is busy processing another call to the same app

func (*CallConflicts) Error

func (s *CallConflicts) Error() string

type CallForbidden

type CallForbidden BaseError

When tofa client rejects action

func (*CallForbidden) Error

func (s *CallForbidden) Error() string

type CallRejected

type CallRejected BaseError

When human being rejects action

func (*CallRejected) Error

func (s *CallRejected) Error() string

type CallTimedOut

type CallTimedOut BaseError

When client does not reply in mean time Nothing which server can fix from its side

func (*CallTimedOut) Error

func (s *CallTimedOut) Error() string

type ClDaConflict

type ClDaConflict BaseError

Fault's on client side When there is a conflict between client GUI and Daemon. Nothing which server can fix from its side

func (*ClDaConflict) Error

func (s *ClDaConflict) Error() string

type ConnectTimedOut

type ConnectTimedOut BaseError

Used in preflight/ping requests When connection doesn't establish in mean time

func (*ConnectTimedOut) Error

func (s *ConnectTimedOut) Error() string

type RequestFailed

type RequestFailed BaseError

When request failed due to different causes

func (*RequestFailed) Error

func (s *RequestFailed) Error() string

type UnsupportedResponseCode

type UnsupportedResponseCode BaseError

Fired amid unexpected response codes from client

func (*UnsupportedResponseCode) Error

func (s *UnsupportedResponseCode) Error() string

type UnsupportedURI

type UnsupportedURI BaseError

Amid unsuported URI

func (*UnsupportedURI) Error

func (s *UnsupportedURI) Error() string

Jump to

Keyboard shortcuts

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