Documentation ¶ Index ¶ func Code(code ErrorCode) error func New(code ErrorCode, detail string) error type Error func (e *Error) Code() ErrorCode func (e *Error) DetailString() string func (e *Error) Error() string type ErrorCode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Code ¶ func Code(code ErrorCode) error func New ¶ func New(code ErrorCode, detail string) error Types ¶ type Error ¶ type Error struct { // contains filtered or unexported fields } func (*Error) Code ¶ func (e *Error) Code() ErrorCode func (*Error) DetailString ¶ func (e *Error) DetailString() string func (*Error) Error ¶ func (e *Error) Error() string type ErrorCode ¶ type ErrorCode interface { Int() int } Source Files ¶ View all Source files code.go error.go Click to show internal directories. Click to hide internal directories.