errors

package
v1.27.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: BSD-3-Clause Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTenantNotActive = errors.New("tenant not active")
	ErrTenantNotFound  = errors.New("tenant not found")
)

Functions

func GoWrapper added in v1.24.2

func GoWrapper(f func(), logger logrus.FieldLogger)

func GoWrapperWithBlock added in v1.24.11

func GoWrapperWithBlock(f func(), logger logrus.FieldLogger) error

func GoWrapperWithErrorCh added in v1.26.0

func GoWrapperWithErrorCh(f func(), logger logrus.FieldLogger) chan error

func IsTenantNotFound added in v1.25.2

func IsTenantNotFound(err error) bool

Types

type ErrContextExpired

type ErrContextExpired struct {
	// contains filtered or unexported fields
}

func NewErrContextExpired

func NewErrContextExpired(err error) ErrContextExpired

func (ErrContextExpired) Error

func (e ErrContextExpired) Error() string

type ErrGraphQLUser added in v1.20.0

type ErrGraphQLUser struct {
	// contains filtered or unexported fields
}

func NewErrGraphQLUser added in v1.20.0

func NewErrGraphQLUser(err error, operation, className string) ErrGraphQLUser

func (ErrGraphQLUser) ClassName added in v1.20.0

func (e ErrGraphQLUser) ClassName() string

func (ErrGraphQLUser) Error added in v1.20.0

func (e ErrGraphQLUser) Error() string

func (ErrGraphQLUser) OriginalError added in v1.20.0

func (e ErrGraphQLUser) OriginalError() error

func (ErrGraphQLUser) QueryType added in v1.20.0

func (e ErrGraphQLUser) QueryType() string

type ErrInternal

type ErrInternal struct {
	// contains filtered or unexported fields
}

func NewErrInternal

func NewErrInternal(err error) ErrInternal

func (ErrInternal) Error

func (e ErrInternal) Error() string

type ErrLockConnector added in v1.20.0

type ErrLockConnector struct {
	// contains filtered or unexported fields
}

func NewErrLockConnector added in v1.20.0

func NewErrLockConnector(err error) ErrLockConnector

func (ErrLockConnector) Error added in v1.20.0

func (e ErrLockConnector) Error() string

type ErrNotFound

type ErrNotFound struct {
	// contains filtered or unexported fields
}

func NewErrNotFound

func NewErrNotFound(err error) ErrNotFound

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

type ErrOpenHttpRequest

type ErrOpenHttpRequest struct {
	// contains filtered or unexported fields
}

func NewErrOpenHttpRequest

func NewErrOpenHttpRequest(err error) ErrOpenHttpRequest

func (ErrOpenHttpRequest) Error

func (e ErrOpenHttpRequest) Error() string

type ErrRateLimit added in v1.20.0

type ErrRateLimit struct {
	// contains filtered or unexported fields
}

func NewErrRateLimit added in v1.20.0

func NewErrRateLimit() ErrRateLimit

func (ErrRateLimit) Error added in v1.20.0

func (e ErrRateLimit) Error() string

type ErrSendHttpRequest

type ErrSendHttpRequest struct {
	// contains filtered or unexported fields
}

func NewErrSendHttpRequest

func NewErrSendHttpRequest(err error) ErrSendHttpRequest

func (ErrSendHttpRequest) Error

func (e ErrSendHttpRequest) Error() string

func (ErrSendHttpRequest) Unwrap added in v1.23.8

func (e ErrSendHttpRequest) Unwrap() error

Unwrap returns the original inner error, so it can be used with errors.Is and errors.As

type ErrUnexpectedStatusCode

type ErrUnexpectedStatusCode struct {
	// contains filtered or unexported fields
}

func NewErrUnexpectedStatusCode

func NewErrUnexpectedStatusCode(statusCode int, body []byte) ErrUnexpectedStatusCode

func (ErrUnexpectedStatusCode) Error

func (e ErrUnexpectedStatusCode) Error() string

type ErrUnmarshalBody

type ErrUnmarshalBody struct {
	// contains filtered or unexported fields
}

func NewErrUnmarshalBody

func NewErrUnmarshalBody(err error) ErrUnmarshalBody

func (ErrUnmarshalBody) Error

func (e ErrUnmarshalBody) Error() string

type ErrUnprocessable

type ErrUnprocessable struct {
	// contains filtered or unexported fields
}

func NewErrUnprocessable

func NewErrUnprocessable(err error) ErrUnprocessable

func (ErrUnprocessable) Error

func (e ErrUnprocessable) Error() string

type ErrorGroupWrapper added in v1.24.2

type ErrorGroupWrapper struct {
	*errgroup.Group
	// contains filtered or unexported fields
}

ErrorGroupWrapper is a custom type that embeds errgroup.Group.

func NewErrorGroupWithContextWrapper added in v1.24.2

func NewErrorGroupWithContextWrapper(logger logrus.FieldLogger, ctx context.Context, vars ...interface{}) (*ErrorGroupWrapper, context.Context)

NewErrorGroupWithContextWrapper creates a new ErrorGroupWrapper

func NewErrorGroupWrapper added in v1.24.2

func NewErrorGroupWrapper(logger logrus.FieldLogger, vars ...interface{}) *ErrorGroupWrapper

NewErrorGroupWrapper creates a new ErrorGroupWrapper.

func (*ErrorGroupWrapper) Go added in v1.24.2

func (egw *ErrorGroupWrapper) Go(f func() error, localVars ...interface{})

Go overrides the Go method to add panic recovery logic.

func (*ErrorGroupWrapper) Wait added in v1.24.2

func (egw *ErrorGroupWrapper) Wait() error

Wait waits for all goroutines to finish and returns the first non-nil error.

Jump to

Keyboard shortcuts

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