Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotImplemented = serrors.New("not implemented") NotSupported = serrors.New("not supported") )
Functions ¶
func Cause ¶
Cause returns the underlying cause of the error, if possible. An error value has a cause if it implements `Causer` interface. If the error does not implement Cause, the original error will be returned.
Types ¶
type CodedError ¶
type CodedError struct { Code int32 `json:"code"` Message string `json:"message,omitempty"` Detail string `json:"detail,omitempty"` }
func Coded ¶
func Coded(code int32, msg string, detail ...string) *CodedError
Coded return an coded error.
func (*CodedError) Error ¶
func (e *CodedError) Error() string
Click to show internal directories.
Click to hide internal directories.