Documentation
¶
Index ¶
- Constants
- func Contains(err error, needle string) bool
- func IsAlreadyExists(err error) bool
- func IsDeadlineExceeded(err error) bool
- func IsFailedPrecondition(err error) bool
- func IsInternal(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func IsPermissionDenied(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(action, kind, name string) error
- func ThrowAlreadyExistsr(action, kind, name, reason string) error
- func ThrowDeadlineExceeded(action, kind, name string) error
- func ThrowDeadlineExceededr(action, kind, name, reason string) error
- func ThrowError(parent error, id, message string) error
- func ThrowFailedPrecondition(action, kind, name string) error
- func ThrowFailedPreconditionr(action, kind, name, reason string) error
- func ThrowInternal(action, kind, name string) error
- func ThrowInternalr(action, kind, name, reason string) error
- func ThrowInvalidArgument(action, kind, name string) error
- func ThrowInvalidArgumentr(action, kind, name, reason string) error
- func ThrowNotFound(action, kind, name string) error
- func ThrowNotFoundr(action, kind, name, reason string) error
- func ThrowPermissionDenied(action, kind, name string) error
- func ThrowPermissionDeniedr(action, kind, name, reason string) error
- func ThrowResourceExhausted(action, kind, name string) error
- func ThrowResourceExhaustedr(action, kind, name, reason string) error
- func ThrowUnauthenticated(action, kind, name string) error
- func ThrowUnauthenticatedr(action, kind, name, reason string) error
- func ThrowUnavailable(action, kind, name string) error
- func ThrowUnavailabler(action, kind, name, reason string) error
- func ThrowUnimplemented(action, kind, name string) error
- func ThrowUnimplementedr(action, kind, name, reason string) error
- func ThrowUnknown(action, kind, name string) error
- func ThrowUnknownr(action, kind, name, reason string) error
- func ToAlreadyExists(parent error, id string, message string) error
- func ToAlreadyExistsf(parent error, id string, format string, a ...interface{}) error
- func ToDeadlineExceeded(parent error, id string, message string) error
- func ToDeadlineExceededf(parent error, id string, format string, a ...interface{}) error
- func ToFailedPrecondition(parent error, id string, message string) error
- func ToFailedPreconditionf(parent error, id string, format string, a ...interface{}) error
- func ToInternal(parent error, id string, message string) error
- func ToInternalf(parent error, id string, format string, a ...interface{}) error
- func ToInvalidArgument(parent error, id string, message string) error
- func ToInvalidArgumentf(parent error, id string, format string, a ...interface{}) error
- func ToNotFound(parent error, id string, message string) error
- func ToNotFoundf(parent error, id string, format string, a ...interface{}) error
- func ToPermissionDenied(parent error, id string, message string) error
- func ToPermissionDeniedf(parent error, id string, format string, a ...interface{}) error
- func ToResourceExhausted(parent error, id string, message string) error
- func ToResourceExhaustedf(parent error, id string, format string, a ...interface{}) error
- func ToUnauthenticated(parent error, id string, message string) error
- func ToUnauthenticatedf(parent error, id string, format string, a ...interface{}) error
- func ToUnavailable(parent error, id string, message string) error
- func ToUnavailablef(parent error, id string, format string, a ...interface{}) error
- func ToUnimplemented(parent error, id string, message string) error
- func ToUnimplementedf(parent error, id string, format string, a ...interface{}) error
- func ToUnknown(parent error, id string, message string) error
- func ToUnknownf(parent error, id string, format string, a ...interface{}) error
- type AlreadyExists
- type AlreadyExistsError
- type DeadlineExceeded
- type DeadlineExceededError
- type Error
- type FailedPrecondition
- type FailedPreconditionError
- type Internal
- type InternalError
- type InvalidArgument
- type InvalidArgumentError
- type NotFound
- type NotFoundError
- type PermissionDenied
- type PermissionDeniedError
- 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 ¶
View Source
const AlreadyExistsId = "AlreadyExists"
View Source
const DeadlineExceededId = "DeadlineExceeded"
View Source
const FailedPreconditionId = "FailedPrecondition"
View Source
const InternalId = "Internal"
View Source
const InvalidArgumentId = "InvalidArgument"
View Source
const NotFoundId = "NotFound"
View Source
const PermissionDeniedId = "PermissionDenied"
View Source
const ResourceExhaustedId = "ResourceExhausted"
View Source
const UnauthenticatedId = "Unauthenticated"
View Source
const UnimplementedId = "Unimplemented"
View Source
const UnknownId = "Unknown"
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶ added in v0.0.2
func IsDeadlineExceeded ¶
func IsFailedPrecondition ¶ added in v0.0.2
func IsInternal ¶
func IsInvalidArgument ¶ added in v0.0.2
func IsNotFound ¶
func IsPermissionDenied ¶
func IsResourceExhausted ¶
func IsUnauthenticated ¶
func IsUnavailable ¶
func IsUnimplemented ¶
func ThrowAlreadyExists ¶
func ThrowAlreadyExistsr ¶ added in v0.0.2
func ThrowDeadlineExceeded ¶
func ThrowDeadlineExceededr ¶ added in v0.0.2
func ThrowError ¶
func ThrowFailedPrecondition ¶ added in v0.0.2
func ThrowFailedPreconditionr ¶ added in v0.0.2
func ThrowInternal ¶
func ThrowInternalr ¶ added in v0.0.2
func ThrowInvalidArgument ¶
func ThrowInvalidArgumentr ¶ added in v0.0.2
func ThrowNotFound ¶
func ThrowNotFoundr ¶ added in v0.0.2
func ThrowPermissionDenied ¶
func ThrowPermissionDeniedr ¶ added in v0.0.2
func ThrowResourceExhausted ¶
func ThrowResourceExhaustedr ¶ added in v0.0.2
func ThrowUnauthenticated ¶
func ThrowUnauthenticatedr ¶ added in v0.0.2
func ThrowUnavailable ¶
func ThrowUnavailabler ¶ added in v0.0.2
func ThrowUnimplemented ¶
func ThrowUnimplementedr ¶ added in v0.0.2
func ThrowUnknown ¶
func ThrowUnknownr ¶ added in v0.0.2
func ToAlreadyExists ¶ added in v0.0.2
func ToAlreadyExistsf ¶ added in v0.0.2
func ToDeadlineExceeded ¶ added in v0.0.2
func ToDeadlineExceededf ¶ added in v0.0.2
func ToFailedPrecondition ¶ added in v0.0.2
func ToFailedPreconditionf ¶ added in v0.0.2
func ToInternalf ¶ added in v0.0.2
func ToInvalidArgument ¶ added in v0.0.2
func ToInvalidArgumentf ¶ added in v0.0.2
func ToNotFoundf ¶ added in v0.0.2
func ToPermissionDenied ¶ added in v0.0.2
func ToPermissionDeniedf ¶ added in v0.0.2
func ToResourceExhausted ¶ added in v0.0.2
func ToResourceExhaustedf ¶ added in v0.0.2
func ToUnauthenticated ¶ added in v0.0.2
func ToUnauthenticatedf ¶ added in v0.0.2
func ToUnavailable ¶ added in v0.0.2
func ToUnavailablef ¶ added in v0.0.2
func ToUnimplemented ¶ added in v0.0.2
func ToUnimplementedf ¶ added in v0.0.2
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()
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()
type Error ¶
Error is a stdlib error extension. It contains parameters to identify errors through all application layers
type FailedPrecondition ¶ added in v0.0.2
type FailedPrecondition interface {
error
IsFailedPrecondition()
}
type FailedPreconditionError ¶ added in v0.0.2
type FailedPreconditionError struct {
*Zerror
}
func (*FailedPreconditionError) Is ¶ added in v0.0.2
func (err *FailedPreconditionError) Is(target error) bool
func (*FailedPreconditionError) IsFailedPrecondition ¶ added in v0.0.2
func (err *FailedPreconditionError) IsFailedPrecondition()
type InternalError ¶
type InternalError struct {
*Zerror
}
func (*InternalError) Is ¶
func (err *InternalError) Is(target error) bool
func (*InternalError) IsInternal ¶
func (err *InternalError) IsInternal()
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()
type NotFoundError ¶
type NotFoundError struct {
*Zerror
}
func (*NotFoundError) Is ¶
func (err *NotFoundError) Is(target error) bool
func (*NotFoundError) IsNotFound ¶
func (err *NotFoundError) IsNotFound()
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()
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()
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()
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()
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()
type UnknownError ¶
type UnknownError struct {
*Zerror
}
func (*UnknownError) Is ¶
func (err *UnknownError) Is(target error) bool
func (*UnknownError) IsUnknown ¶
func (err *UnknownError) IsUnknown()
type Zerror ¶
func CreateZerror ¶ added in v0.0.2
func (*Zerror) GetMessage ¶
func (*Zerror) SetMessage ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.