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 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) error
- func ThrowInternalf(parent error, id, format string, a ...interface{}) 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 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 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 CaosError
- func (err *CaosError) As(target interface{}) bool
- func (err *CaosError) Error() string
- func (err *CaosError) GetID() string
- func (err *CaosError) GetMessage() string
- func (err *CaosError) GetParent() error
- func (err *CaosError) Is(target error) bool
- func (err *CaosError) SetMessage(msg string)
- func (err *CaosError) Unwrap() error
- 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 Unauthenticated
- type UnauthenticatedError
- type Unavailable
- type UnavailableError
- type Unimplemented
- type UnimplementedError
- type Unknown
- type UnknownError
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 IsUnauthenticated ¶
func IsUnavailable ¶
func IsUnimplemented ¶
func ThrowAlreadyExists ¶
func ThrowAlreadyExistsf ¶
func ThrowDeadlineExceeded ¶
func ThrowDeadlineExceededf ¶
func ThrowError ¶
func ThrowInternal ¶
func ThrowInternalf ¶
func ThrowInvalidArgument ¶
func ThrowInvalidArgumentf ¶
func ThrowNotFound ¶
func ThrowNotFoundf ¶
func ThrowPermissionDenied ¶
func ThrowPermissionDeniedf ¶
func ThrowPreconditionFailed ¶
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 {
*CaosError
}
func (*AlreadyExistsError) Is ¶
func (err *AlreadyExistsError) Is(target error) bool
func (*AlreadyExistsError) IsAlreadyExists ¶
func (err *AlreadyExistsError) IsAlreadyExists()
type CaosError ¶
func CreateCaosError ¶
func (*CaosError) GetMessage ¶
func (*CaosError) SetMessage ¶
type DeadlineExceeded ¶
type DeadlineExceeded interface { error IsDeadlineExceeded() }
type DeadlineExceededError ¶
type DeadlineExceededError struct {
*CaosError
}
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 InternalError ¶
type InternalError struct {
*CaosError
}
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 {
*CaosError
}
func (*InvalidArgumentError) Is ¶
func (err *InvalidArgumentError) Is(target error) bool
func (*InvalidArgumentError) IsInvalidArgument ¶
func (err *InvalidArgumentError) IsInvalidArgument()
type NotFoundError ¶
type NotFoundError struct {
*CaosError
}
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 {
*CaosError
}
func (*PermissionDeniedError) Is ¶
func (err *PermissionDeniedError) Is(target error) bool
func (*PermissionDeniedError) IsPermissionDenied ¶
func (err *PermissionDeniedError) IsPermissionDenied()
type PreconditionFailed ¶
type PreconditionFailed interface { error IsPreconditionFailed() }
type PreconditionFailedError ¶
type PreconditionFailedError struct {
*CaosError
}
func (*PreconditionFailedError) Is ¶
func (err *PreconditionFailedError) Is(target error) bool
func (*PreconditionFailedError) IsPreconditionFailed ¶
func (err *PreconditionFailedError) IsPreconditionFailed()
type Unauthenticated ¶
type Unauthenticated interface { error IsUnauthenticated() }
type UnauthenticatedError ¶
type UnauthenticatedError struct {
*CaosError
}
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 {
*CaosError
}
func (*UnimplementedError) Is ¶
func (err *UnimplementedError) Is(target error) bool
func (*UnimplementedError) IsUnimplemented ¶
func (err *UnimplementedError) IsUnimplemented()
type UnknownError ¶
type UnknownError struct {
*CaosError
}
func (*UnknownError) Is ¶
func (err *UnknownError) Is(target error) bool
func (*UnknownError) IsUnknown ¶
func (err *UnknownError) IsUnknown()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.