errs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errs contains declarations of domain-level errors wrappers and methods to map them for client identification of the error.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound  = errors.New("resource not found")
	ErrExists    = errors.New("resource already exists")
	ErrIfNotBool = errors.New("if must return a boolean value")
)

Standard errors.

Functions

This section is empty.

Types

type ErrActionNotSupported

type ErrActionNotSupported string

ErrActionNotSupported indicates that the action is not supported by the tracker.

func (ErrActionNotSupported) Error

func (e ErrActionNotSupported) Error() string

Error returns the string representation of the error.

type ErrGithubAPI

type ErrGithubAPI struct {
	ResponseStatus int    `json:"-"`
	Message        string `json:"message"`
	Errors         []struct {
		Code     string `json:"code"`
		Message  string `json:"message"`
		Resource string `json:"resource"`
	} `json:"errors"`
}

ErrGithubAPI describes any error responded by the Github API.

func (ErrGithubAPI) Error

func (e ErrGithubAPI) Error() string

Error returns the string representation of the error.

type ErrMethodParseFailed

type ErrMethodParseFailed string

ErrMethodParseFailed indicates that the Request contains an invalid path to the method.

func (ErrMethodParseFailed) Error

func (e ErrMethodParseFailed) Error() string

Error returns the string representation of the error.

type ErrTrackerNotRegistered

type ErrTrackerNotRegistered string

ErrTrackerNotRegistered indicates about the call to the tracker, that was not registered by the Dispatcher.

func (ErrTrackerNotRegistered) Error

func (e ErrTrackerNotRegistered) Error() string

Error returns the string representation of the error.

type ErrTrackerRegistered

type ErrTrackerRegistered string

ErrTrackerRegistered indicates that the attempt to register a new tracker handler has been failed as this tracker is already registered in the Manager.

func (ErrTrackerRegistered) Error

func (e ErrTrackerRegistered) Error() string

Error returns the string representation of the error.

Jump to

Keyboard shortcuts

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