errtypes

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 0 Imported by: 18

Documentation

Overview

Package errtypes contains definitions for common errors. It would have nice to call this package errors, err or error but errors clashes with github.com/pkg/errors, err is used for any error variable and error is a reserved word :)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyExists

type AlreadyExists string

AlreadyExists is the error to use when a resource something is not found.

func (AlreadyExists) Error

func (e AlreadyExists) Error() string

func (AlreadyExists) IsAlreadyExists

func (e AlreadyExists) IsAlreadyExists()

IsAlreadyExists is the method to check for w

type InternalError added in v0.0.2

type InternalError string

InternalError is the error to use when we really don't know what happened. Use with care

func (InternalError) Error added in v0.0.2

func (e InternalError) Error() string

type InvalidCredentials

type InvalidCredentials string

InvalidCredentials is the error to use when receiving invalid credentials.

func (InvalidCredentials) Error

func (e InvalidCredentials) Error() string

func (InvalidCredentials) IsInvalidCredentials

func (e InvalidCredentials) IsInvalidCredentials()

IsInvalidCredentials implements the IsInvalidCredentials interface.

type IsAlreadyExists

type IsAlreadyExists interface {
	IsAlreadyExists()
}

IsAlreadyExists is the interface to implement to specify that an a resource is not found.

type IsInternalError added in v0.0.2

type IsInternalError interface {
	IsInternalError()
}

IsInternalError is the interface to implement to specify that there was some internal error

type IsInvalidCredentials

type IsInvalidCredentials interface {
	IsInvalidCredentials()
}

IsInvalidCredentials is the interface to implement to specify that credentials were wrong.

type IsNotFound

type IsNotFound interface {
	IsNotFound()
}

IsNotFound is the interface to implement to specify that an a resource is not found.

type IsNotSupported

type IsNotSupported interface {
	IsNotSupported()
}

IsNotSupported is the interface to implement to specify that an action is not supported.

type IsPermissionDenied added in v0.0.2

type IsPermissionDenied interface {
	IsPermissionDenied()
}

IsPermissionDenied is the interface to implement to specify that an action is not supported.

type IsUserRequired

type IsUserRequired interface {
	IsUserRequired()
}

IsUserRequired is the interface to implement to specify that a user is required.

type NotFound

type NotFound string

NotFound is the error to use when a resource something is not found.

func (NotFound) Error

func (e NotFound) Error() string

func (NotFound) IsNotFound

func (e NotFound) IsNotFound()

IsNotFound is the method to check for w

type NotSupported

type NotSupported string

NotSupported is the error to use when an action is not supported.

func (NotSupported) Error

func (e NotSupported) Error() string

func (NotSupported) IsNotSupported

func (e NotSupported) IsNotSupported()

IsNotSupported implements the IsNotSupported interface.

type PermissionDenied added in v0.0.2

type PermissionDenied string

PermissionDenied is the error to use when a resource cannot be access because of missing permissions.

func (PermissionDenied) Error added in v0.0.2

func (e PermissionDenied) Error() string

func (PermissionDenied) IsPermissionDenied added in v0.0.2

func (e PermissionDenied) IsPermissionDenied()

IsPermissionDenied is the method to check for w

type UserRequired

type UserRequired string

UserRequired represents an error when a resource is not found.

func (UserRequired) Error

func (e UserRequired) Error() string

func (UserRequired) IsUserRequired

func (e UserRequired) IsUserRequired()

IsUserRequired implements the UserRequired interface.

Jump to

Keyboard shortcuts

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