Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cause ¶ added in v0.2.0
Cause returns the underlying cause of the error, if possible. An error value has a cause if it implements the following interface:
type causer interface { Cause() error }
If the error does not implement Cause, the original error will be returned. If the error is nil, nil will be returned without further investigation.
Types ¶
type Categorized ¶
func Newf ¶
func Newf(group, kind string, objs []interface{}, format string, args ...interface{}) Categorized
type Formal ¶
type Formal interface { Categorized Arg(n int) interface{} Length() int }
type FormalType ¶
type FormalType struct { Type // contains filtered or unexported fields }
func DeclareFormalType ¶
func DeclareFormalType(group, kind, format string) *FormalType
func (*FormalType) New ¶
func (this *FormalType) New(args ...interface{}) Categorized
func (*FormalType) Newf ¶
func (this *FormalType) Newf(objs []interface{}, format string, args ...interface{}) Categorized
func (*FormalType) Wrap ¶
func (this *FormalType) Wrap(cause error, args ...interface{}) Categorized
type StackTracer ¶
type StackTracer interface {
StackTrace() errors.StackTrace
}
type Type ¶
type Type struct {
GroupKind
}
func DeclareType ¶
func (*Type) Newf ¶
func (this *Type) Newf(format string, args ...interface{}) Categorized
Click to show internal directories.
Click to hide internal directories.