Documentation ¶
Index ¶
- func As(err error, target any) bool
- func AsRemoteError(err error) error
- func DecodeMsgPack(using codec.MsgPackDecoder) (error, error)
- func EncodeMsgPack(err error, using codec.MsgPackEncoder) error
- func Is(err, target error) bool
- func IsType(err error, t Type, otherT ...Type) bool
- func Unwrap(err error) error
- type Error
- func (this *Error) DecodeMsgPack(dec codec.MsgPackDecoder) (err error)
- func (this *Error) DecodeMsgpack(dec *msgpack.Decoder) (err error)
- func (this Error) EncodeMsgPack(enc codec.MsgPackEncoder) error
- func (this Error) EncodeMsgpack(enc *msgpack.Encoder) error
- func (this *Error) Error() string
- func (this *Error) Extend(args ...any) *Error
- func (this *Error) Extendf(msg string, args ...any) *Error
- func (this *Error) Unwrap() error
- type RemoteError
- type Type
- func (this *Type) DecodeMsgPack(dec codec.MsgPackDecoder) error
- func (this *Type) DecodeMsgpack(dec *msgpack.Decoder) (err error)
- func (this Type) EncodeMsgPack(enc codec.MsgPackEncoder) error
- func (this Type) EncodeMsgpack(enc *msgpack.Encoder) error
- func (t Type) IsEqualTo(other any) bool
- func (t Type) IsErr(err error) bool
- func (t Type) IsZero() bool
- func (t Type) MarshalText() ([]byte, error)
- func (t Type) Newf(msg string, args ...any) *Error
- func (t *Type) Set(plain string) error
- func (t Type) String() string
- func (t *Type) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsRemoteError ¶ added in v0.5.10
func DecodeMsgPack ¶ added in v0.4.0
func DecodeMsgPack(using codec.MsgPackDecoder) (error, error)
func EncodeMsgPack ¶ added in v0.4.0
func EncodeMsgPack(err error, using codec.MsgPackEncoder) error
Types ¶
type Error ¶
func (*Error) DecodeMsgPack ¶ added in v0.4.0
func (this *Error) DecodeMsgPack(dec codec.MsgPackDecoder) (err error)
func (*Error) DecodeMsgpack ¶ added in v0.4.0
func (Error) EncodeMsgPack ¶ added in v0.4.0
func (this Error) EncodeMsgPack(enc codec.MsgPackEncoder) error
func (Error) EncodeMsgpack ¶ added in v0.4.0
type RemoteError ¶ added in v0.5.10
type RemoteError struct {
Err error
}
func (RemoteError) Error ¶ added in v0.5.10
func (this RemoteError) Error() string
func (RemoteError) String ¶ added in v0.5.10
func (this RemoteError) String() string
func (RemoteError) Unwrap ¶ added in v0.5.10
func (this RemoteError) Unwrap() error
type Type ¶
type Type uint8
func (*Type) DecodeMsgPack ¶ added in v0.4.0
func (this *Type) DecodeMsgPack(dec codec.MsgPackDecoder) error
func (*Type) DecodeMsgpack ¶ added in v0.4.0
func (Type) EncodeMsgPack ¶ added in v0.4.0
func (this Type) EncodeMsgPack(enc codec.MsgPackEncoder) error
func (Type) EncodeMsgpack ¶ added in v0.4.0
func (Type) MarshalText ¶
func (*Type) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.