errors

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var New = errors.New

New is a re-export of the built-in errors.New function.

Functions

func GetCause

func GetCause(err error) error

func GetPublicMessage

func GetPublicMessage(err error, fallback string) string

func IsAlreadyCompilingError

func IsAlreadyCompilingError(err error) bool

func IsAlreadyReported

func IsAlreadyReported(err error) bool

func IsCompilerUnavailableError

func IsCompilerUnavailableError(err error) bool

func IsFatalError

func IsFatalError(err error) bool

func IsInvalidStateError

func IsInvalidStateError(err error) bool

func IsNotAuthorizedError

func IsNotAuthorizedError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func IsUnauthorizedError

func IsUnauthorizedError(err error) bool

func IsUnprocessableEntityError

func IsUnprocessableEntityError(err error) bool

func IsValidationError

func IsValidationError(err error) bool

func MarkAsReported

func MarkAsReported(err error) error

func Merge

func Merge(errors ...error) error

Types

type AlreadyCompilingError

type AlreadyCompilingError struct{}

func (AlreadyCompilingError) Error

func (a AlreadyCompilingError) Error() string

type AlreadyReportedError

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

func (AlreadyReportedError) Error

func (a AlreadyReportedError) Error() string

type BodyTooLargeError

type BodyTooLargeError struct{}

func (BodyTooLargeError) Error

func (e BodyTooLargeError) Error() string

func (BodyTooLargeError) IsFatal

func (e BodyTooLargeError) IsFatal()

func (BodyTooLargeError) IsUserFacing

func (e BodyTooLargeError) IsUserFacing()

type Causer

type Causer interface {
	Cause() error
}

type CodedError

type CodedError struct {
	Msg string
}

func (*CodedError) Error

func (e *CodedError) Error() string

func (*CodedError) IsUserFacing

func (e *CodedError) IsUserFacing()

type CompilerUnavailableError

type CompilerUnavailableError struct{}

func (CompilerUnavailableError) Error

func (a CompilerUnavailableError) Error() string

type DocNotFoundError

type DocNotFoundError struct{}

func (DocNotFoundError) Error

func (e DocNotFoundError) Error() string

type FatalError

type FatalError interface {
	IsFatal()
}

type InvalidStateError

type InvalidStateError struct {
	Msg string
}

func (*InvalidStateError) Error

func (i *InvalidStateError) Error() string

func (*InvalidStateError) IsFatal

func (i *InvalidStateError) IsFatal()

func (*InvalidStateError) IsUserFacing

func (i *InvalidStateError) IsUserFacing()

type JavaScriptError

type JavaScriptError struct {
	Message string `json:"message"`
	Code    string `json:"code,omitempty"`
}

func (*JavaScriptError) Error

func (j *JavaScriptError) Error() string

type MergedError

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

func (*MergedError) Add

func (m *MergedError) Add(err error)

func (*MergedError) Clear

func (m *MergedError) Clear()

func (*MergedError) Error

func (m *MergedError) Error() string

func (*MergedError) Finalize

func (m *MergedError) Finalize() error

type MissingOutputFileError

type MissingOutputFileError struct {
	Msg string
}

func (MissingOutputFileError) Error

func (m MissingOutputFileError) Error() string

type NotAuthorizedError

type NotAuthorizedError struct{}

func (*NotAuthorizedError) Error

func (e *NotAuthorizedError) Error() string

func (*NotAuthorizedError) IsFatal

func (e *NotAuthorizedError) IsFatal()

func (*NotAuthorizedError) IsUserFacing

func (e *NotAuthorizedError) IsUserFacing()

type NotFoundError

type NotFoundError struct{}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) IsUserFacing

func (e *NotFoundError) IsUserFacing()

type ProjectNotEditableError

type ProjectNotEditableError struct{}

func (*ProjectNotEditableError) Error

func (i *ProjectNotEditableError) Error() string

func (*ProjectNotEditableError) IsFatal

func (i *ProjectNotEditableError) IsFatal()

func (*ProjectNotEditableError) IsUserFacing

func (i *ProjectNotEditableError) IsUserFacing()

type RateLimitedError

type RateLimitedError struct {
	RetryIn time.Duration
}

func (RateLimitedError) Error

func (e RateLimitedError) Error() string

type TaggedError

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

func Tag

func Tag(err error, msg string) *TaggedError

func (*TaggedError) Cause

func (t *TaggedError) Cause() error

func (*TaggedError) Error

func (t *TaggedError) Error() string

func (*TaggedError) Unwrap

func (t *TaggedError) Unwrap() error

type UnauthorizedError

type UnauthorizedError struct {
	Reason string
}

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

func (*UnauthorizedError) IsFatal

func (e *UnauthorizedError) IsFatal()

func (*UnauthorizedError) IsUserFacing

func (e *UnauthorizedError) IsUserFacing()

type UnprocessableEntityError

type UnprocessableEntityError struct {
	Msg string
}

func (*UnprocessableEntityError) Error

func (i *UnprocessableEntityError) Error() string

func (*UnprocessableEntityError) IsUserFacing

func (i *UnprocessableEntityError) IsUserFacing()

type UpdateRangeNotAvailableError

type UpdateRangeNotAvailableError struct{}

func (*UpdateRangeNotAvailableError) Error

func (*UpdateRangeNotAvailableError) IsFatal

func (i *UpdateRangeNotAvailableError) IsFatal()

func (*UpdateRangeNotAvailableError) IsUserFacing

func (i *UpdateRangeNotAvailableError) IsUserFacing()

type UserFacingError

type UserFacingError interface {
	IsUserFacing()
}

type ValidationError

type ValidationError struct {
	Msg string
}

func (*ValidationError) Error

func (v *ValidationError) Error() string

func (*ValidationError) IsUserFacing

func (v *ValidationError) IsUserFacing()

Jump to

Keyboard shortcuts

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