Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusCode ¶
StatusCode returns the Status code if err is a Status, zero if err is not a Status
Types ¶
type Status ¶
Status data model
Implements error interface
func NewStatusWithCause ¶ added in v0.10.0
NewStatus with cause, code, and message
Cause can be useful to record an error that caused a Status to be created
func NewStatusWithItems ¶ added in v0.6.0
NewStatusWithItems with code, message, and items
Items can be useful to add extra context to the error
func (Status) MarshalJSON ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.