errors

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Server The operation looked fine but the server couldn't process it.
	Server string = "server"
	// NotFound The requested resource could not be found.
	NotFound string = "not_found"
	// User The request was well-formed but was unable to be followed due to semantic errors.
	User string = "user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Type    string
	Message string `json:"message"`
	Err     error
}

Error Representation of errors in API.

func EntitlementError

func EntitlementError(message string, err error) *Error

EntitlementError Used to represent entitlement errors.

func MissingTenantError

func MissingTenantError(message string) *Error

MissingTenantError Used to represent missing tenant errors.

func NotFoundError

func NotFoundError(message string) *Error

NotFoundError Used to represent not found errors.

func ServerError

func ServerError(message string) *Error

ServerError Used to represent server errors.

func UnauthorizedError

func UnauthorizedError(message string) *Error

UnauthorizedError Used to represent unauthorized errors.

func ValidationError

func ValidationError(message string, err error) *Error

ValidationError Used to represent validation errors.

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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