Documentation
¶
Index ¶
- func Contains(err error, needle string) bool
- func IsDeadlineExceeded(err error) bool
- func IsErrorAlreadyExists(err error) bool
- func IsErrorInvalidArgument(err error) bool
- func IsInternal(err error) bool
- func IsNotFound(err error) bool
- func IsPermissionDenied(err error) bool
- func IsPreconditionFailed(err error) bool
- func IsResourceExhausted(err error) bool
- func IsUnauthenticated(err error) bool
- func IsUnavailable(err error) bool
- func IsUnimplemented(err error) bool
- func IsUnknown(err error) bool
- func ThrowAlreadyExists(parent error, id, message string) error
- func ThrowAlreadyExistsf(parent error, id, format string, a ...interface{}) error
- func ThrowDeadlineExceeded(parent error, id, message string) error
- func ThrowDeadlineExceededf(parent error, id, format string, a ...interface{}) error
- func ThrowError(parent error, id, message string) error
- func ThrowInternal(parent error, id, message string, kv ...any) error
- func ThrowInvalidArgument(parent error, id, message string) error
- func ThrowInvalidArgumentf(parent error, id, format string, a ...interface{}) error
- func ThrowNotFound(parent error, id, message string) error
- func ThrowNotFoundResource(action, kind, name string) error
- func ThrowNotFoundResourceParent(action, kind, parent, parentKind string) error
- func ThrowNotFoundf(parent error, id, format string, a ...interface{}) error
- func ThrowPermissionDenied(parent error, id, message string) error
- func ThrowPermissionDeniedf(parent error, id, format string, a ...interface{}) error
- func ThrowPreconditionFailed(parent error, id, message string) error
- func ThrowPreconditionFailedf(parent error, id, format string, a ...interface{}) error
- func ThrowResourceExhausted(parent error, id, message string) error
- func ThrowResourceExhaustedf(parent error, id, format string, a ...interface{}) error
- func ThrowUnauthenticated(parent error, id, message string) error
- func ThrowUnauthenticatedf(parent error, id, format string, a ...interface{}) error
- func ThrowUnavailable(parent error, id, message string) error
- func ThrowUnavailablef(parent error, id, format string, a ...interface{}) error
- func ThrowUnimplemented(parent error, id, message string) error
- func ThrowUnimplementedf(parent error, id, format string, a ...interface{}) error
- func ThrowUnknown(parent error, id, message string) error
- func ThrowUnknownf(parent error, id, format string, a ...interface{}) error
- type AlreadyExists
- type AlreadyExistsError
- type DeadlineExceeded
- type DeadlineExceededError
- type Error
- type Internal
- type InternalError
- type InvalidArgument
- type InvalidArgumentError
- type NotFound
- type NotFoundError
- type PermissionDenied
- type PermissionDeniedError
- type PreconditionFailed
- type PreconditionFailedError
- type ResourceExhausted
- type ResourceExhaustedError
- type Unauthenticated
- type UnauthenticatedError
- type Unavailable
- type UnavailableError
- type Unimplemented
- type UnimplementedError
- type Unknown
- type UnknownError
- type Zerror
- func (err *Zerror) As(target interface{}) bool
- func (err *Zerror) Error() string
- func (err *Zerror) GetID() string
- func (err *Zerror) GetMessage() string
- func (err *Zerror) GetParent() error
- func (err *Zerror) Is(target error) bool
- func (err *Zerror) SetMessage(msg string)
- func (err *Zerror) Unwrap() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDeadlineExceeded ¶
func IsErrorAlreadyExists ¶
func IsErrorInvalidArgument ¶
func IsInternal ¶
func IsNotFound ¶
func IsPermissionDenied ¶
func IsPreconditionFailed ¶
func IsResourceExhausted ¶
func IsUnauthenticated ¶
func IsUnavailable ¶
func IsUnimplemented ¶
func ThrowAlreadyExists ¶
func ThrowAlreadyExistsf ¶
func ThrowDeadlineExceeded ¶
func ThrowDeadlineExceededf ¶
func ThrowError ¶
func ThrowInvalidArgument ¶
func ThrowInvalidArgumentf ¶
func ThrowNotFound ¶
func ThrowNotFoundResource ¶
func ThrowNotFoundf ¶
func ThrowPermissionDenied ¶
func ThrowPermissionDeniedf ¶
func ThrowPreconditionFailed ¶
func ThrowResourceExhausted ¶
func ThrowResourceExhaustedf ¶
func ThrowUnauthenticated ¶
func ThrowUnauthenticatedf ¶
func ThrowUnavailable ¶
func ThrowUnavailablef ¶
func ThrowUnimplemented ¶
func ThrowUnimplementedf ¶
func ThrowUnknown ¶
func ThrowUnknownf ¶
Types ¶
type AlreadyExists ¶
type AlreadyExists interface {
error
IsAlreadyExists()
}
type AlreadyExistsError ¶
type AlreadyExistsError struct {
*Zerror
}
func (*AlreadyExistsError) Is ¶
func (err *AlreadyExistsError) Is(target error) bool
func (*AlreadyExistsError) IsAlreadyExists ¶
func (err *AlreadyExistsError) IsAlreadyExists()
func (*AlreadyExistsError) Unwrap ¶
func (err *AlreadyExistsError) Unwrap() error
type DeadlineExceeded ¶
type DeadlineExceeded interface {
error
IsDeadlineExceeded()
}
type DeadlineExceededError ¶
type DeadlineExceededError struct {
*Zerror
}
func (*DeadlineExceededError) Is ¶
func (err *DeadlineExceededError) Is(target error) bool
func (*DeadlineExceededError) IsDeadlineExceeded ¶
func (err *DeadlineExceededError) IsDeadlineExceeded()
func (*DeadlineExceededError) Unwrap ¶
func (err *DeadlineExceededError) Unwrap() error
type Error ¶
Error is a stdlib error extension. It contains parameters to identify errors through all application layers
type InternalError ¶
type InternalError struct {
*Zerror
}
func (*InternalError) Is ¶
func (err *InternalError) Is(target error) bool
func (*InternalError) IsInternal ¶
func (err *InternalError) IsInternal()
func (*InternalError) Unwrap ¶
func (err *InternalError) Unwrap() error
type InvalidArgument ¶
type InvalidArgument interface {
error
IsInvalidArgument()
}
type InvalidArgumentError ¶
type InvalidArgumentError struct {
*Zerror
}
func (*InvalidArgumentError) Is ¶
func (err *InvalidArgumentError) Is(target error) bool
func (*InvalidArgumentError) IsInvalidArgument ¶
func (err *InvalidArgumentError) IsInvalidArgument()
func (*InvalidArgumentError) Unwrap ¶
func (err *InvalidArgumentError) Unwrap() error
type NotFoundError ¶
type NotFoundError struct {
*Zerror
}
func (*NotFoundError) Is ¶
func (err *NotFoundError) Is(target error) bool
func (*NotFoundError) IsNotFound ¶
func (err *NotFoundError) IsNotFound()
func (*NotFoundError) Unwrap ¶
func (err *NotFoundError) Unwrap() error
type PermissionDenied ¶
type PermissionDenied interface {
error
IsPermissionDenied()
}
type PermissionDeniedError ¶
type PermissionDeniedError struct {
*Zerror
}
func (*PermissionDeniedError) Is ¶
func (err *PermissionDeniedError) Is(target error) bool
func (*PermissionDeniedError) IsPermissionDenied ¶
func (err *PermissionDeniedError) IsPermissionDenied()
func (*PermissionDeniedError) Unwrap ¶
func (err *PermissionDeniedError) Unwrap() error
type PreconditionFailed ¶
type PreconditionFailed interface {
error
IsPreconditionFailed()
}
type PreconditionFailedError ¶
type PreconditionFailedError struct {
*Zerror
}
func (*PreconditionFailedError) Is ¶
func (err *PreconditionFailedError) Is(target error) bool
func (*PreconditionFailedError) IsPreconditionFailed ¶
func (err *PreconditionFailedError) IsPreconditionFailed()
func (*PreconditionFailedError) Unwrap ¶
func (err *PreconditionFailedError) Unwrap() error
type ResourceExhausted ¶
type ResourceExhausted interface {
error
IsResourceExhausted()
}
type ResourceExhaustedError ¶
type ResourceExhaustedError struct {
*Zerror
}
func (*ResourceExhaustedError) Is ¶
func (err *ResourceExhaustedError) Is(target error) bool
func (*ResourceExhaustedError) IsResourceExhausted ¶
func (err *ResourceExhaustedError) IsResourceExhausted()
func (*ResourceExhaustedError) Unwrap ¶
func (err *ResourceExhaustedError) Unwrap() error
type Unauthenticated ¶
type Unauthenticated interface {
error
IsUnauthenticated()
}
type UnauthenticatedError ¶
type UnauthenticatedError struct {
*Zerror
}
func (*UnauthenticatedError) Is ¶
func (err *UnauthenticatedError) Is(target error) bool
func (*UnauthenticatedError) IsUnauthenticated ¶
func (err *UnauthenticatedError) IsUnauthenticated()
func (*UnauthenticatedError) Unwrap ¶
func (err *UnauthenticatedError) Unwrap() error
type Unavailable ¶
type Unavailable interface {
error
}
type UnavailableError ¶
type UnavailableError struct {
}
func (*UnavailableError) Is ¶
func (err *UnavailableError) Is(target error) bool
func (*UnavailableError) IsUnavailable ¶
func (err *UnavailableError) IsUnavailable()
func (*UnavailableError) Unwrap ¶
func (err *UnavailableError) Unwrap() error
type Unimplemented ¶
type Unimplemented interface {
error
IsUnimplemented()
}
type UnimplementedError ¶
type UnimplementedError struct {
*Zerror
}
func (*UnimplementedError) Is ¶
func (err *UnimplementedError) Is(target error) bool
func (*UnimplementedError) IsUnimplemented ¶
func (err *UnimplementedError) IsUnimplemented()
func (*UnimplementedError) Unwrap ¶
func (err *UnimplementedError) Unwrap() error
type UnknownError ¶
type UnknownError struct {
*Zerror
}
func (*UnknownError) Is ¶
func (err *UnknownError) Is(target error) bool
func (*UnknownError) IsUnknown ¶
func (err *UnknownError) IsUnknown()
func (*UnknownError) Unwrap ¶
func (err *UnknownError) Unwrap() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.