errors

package
v0.0.0-...-f09cf9b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

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

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

func GoWrapperWithBlock

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

func GoWrapperWithErrorCh

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

func IsTenantNotFound

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

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

func NewErrGraphQLUser

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

func (ErrGraphQLUser) ClassName

func (e ErrGraphQLUser) ClassName() string

func (ErrGraphQLUser) Error

func (e ErrGraphQLUser) Error() string

func (ErrGraphQLUser) OriginalError

func (e ErrGraphQLUser) OriginalError() error

func (ErrGraphQLUser) QueryType

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

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

func NewErrLockConnector

func NewErrLockConnector(err error) ErrLockConnector

func (ErrLockConnector) Error

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

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

func NewErrRateLimit

func NewErrRateLimit() ErrRateLimit

func (ErrRateLimit) Error

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

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

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

ErrorGroupWrapper is a custom type that embeds errgroup.Group.

func NewErrorGroupWithContextWrapper

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

NewErrorGroupWithContextWrapper creates a new ErrorGroupWrapper

func NewErrorGroupWrapper

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

NewErrorGroupWrapper creates a new ErrorGroupWrapper.

func (*ErrorGroupWrapper) Go

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

Go overrides the Go method to add panic recovery logic.

func (*ErrorGroupWrapper) Wait

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