errors

package
v0.0.0-...-bff9524 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsResourceAlreadyExists

func IsResourceAlreadyExists(err error) bool

func IsResourceNotFound

func IsResourceNotFound(err error) bool

Types

type DeleteResourceError

type DeleteResourceError struct {
	ResourceType string
	ResourceID   string
	Reason       string
}

func NewDeleteResourceError

func NewDeleteResourceError(resourceType, resourceID, reason string) DeleteResourceError

func (DeleteResourceError) Error

func (d DeleteResourceError) Error() string

type DeviceNotEnroledError

type DeviceNotEnroledError struct {
	DeviceID string
}

func NewDeviceNotEnroledError

func NewDeviceNotEnroledError(deviceID string) DeviceNotEnroledError

func (DeviceNotEnroledError) Error

func (d DeviceNotEnroledError) Error() string

type DeviceNotRegisteredError

type DeviceNotRegisteredError struct {
	DeviceID string
}

func NewDeviceNotRegisteredError

func NewDeviceNotRegisteredError(deviceID string) DeviceNotRegisteredError

func (DeviceNotRegisteredError) Error

func (d DeviceNotRegisteredError) Error() string

type PosgresNotAvailableError

type PosgresNotAvailableError struct {
	Err error
}

func NewPostgresNotAvailableError

func NewPostgresNotAvailableError(service string) PosgresNotAvailableError

func (PosgresNotAvailableError) Error

func (p PosgresNotAvailableError) Error() string

type ResourceAlreadyExists

type ResourceAlreadyExists struct {
	ResourceType string
	ResourceID   string
	Err          error
}

func NewResourceAlreadyExistsError

func NewResourceAlreadyExistsError(resourceType, resourceID string) ResourceAlreadyExists

func NewResourceAlreadyExistsErrorWithErr

func NewResourceAlreadyExistsErrorWithErr(resourceType, resourceID string, err error) ResourceAlreadyExists

func (ResourceAlreadyExists) Error

func (r ResourceAlreadyExists) Error() string

type ResourseNotFoundError

type ResourseNotFoundError struct {
	ResourceType string
	Reason       string
	ResourceID   string
	Err          error
}

func NewResourceNotFoundError

func NewResourceNotFoundError(resourceType, resourceID string) ResourseNotFoundError

func NewResourceNotFoundErrorWithErr

func NewResourceNotFoundErrorWithErr(resourceType, resourceID string, err error) ResourseNotFoundError

func NewResourceNotFoundErrorWithReason

func NewResourceNotFoundErrorWithReason(reason string) ResourseNotFoundError

func (ResourseNotFoundError) Error

func (r ResourseNotFoundError) Error() string

Jump to

Keyboard shortcuts

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