Documentation ¶
Index ¶
- Variables
- func GetCause(err error) error
- func GetPublicMessage(err error, fallback string) string
- func IsAlreadyCompilingError(err error) bool
- func IsAlreadyReported(err error) bool
- func IsCompilerUnavailableError(err error) bool
- func IsFatalError(err error) bool
- func IsInvalidStateError(err error) bool
- func IsNotAuthorizedError(err error) bool
- func IsNotFoundError(err error) bool
- func IsUnauthorizedError(err error) bool
- func IsUnprocessableEntityError(err error) bool
- func IsValidationError(err error) bool
- func MarkAsReported(err error) error
- func Merge(errors ...error) error
- type AlreadyCompilingError
- type AlreadyReportedError
- type BodyTooLargeError
- type Causer
- type CodedError
- type CompilerUnavailableError
- type DocNotFoundError
- type FatalError
- type InvalidStateError
- type JavaScriptError
- type MergedError
- type MissingOutputFileError
- type NotAuthorizedError
- type NotFoundError
- type ProjectNotEditableError
- type RateLimitedError
- type TaggedError
- type UnauthorizedError
- type UnprocessableEntityError
- type UpdateRangeNotAvailableError
- type UserFacingError
- type ValidationError
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 GetPublicMessage ¶
func IsAlreadyCompilingError ¶
func IsAlreadyReported ¶
func IsFatalError ¶
func IsInvalidStateError ¶
func IsNotAuthorizedError ¶
func IsNotFoundError ¶
func IsUnauthorizedError ¶
func IsValidationError ¶
func MarkAsReported ¶
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 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 ¶
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 ¶
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 {
}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 (i *UpdateRangeNotAvailableError) Error() string
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()
Click to show internal directories.
Click to hide internal directories.