Documentation
¶
Overview ¶
Package orberrors provides an error that must be transported on client<->server operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnimplemented = New(http.StatusInternalServerError, "Unimplemented") ErrInternalServerError = NewHTTP(http.StatusInternalServerError) ErrRequestTimeout = NewHTTP(http.StatusRequestTimeout) ErrBadRequest = NewHTTP(http.StatusBadRequest) ErrCanceled = NewHTTP(499) )
A list of default errors.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code int `json:"code"`
Message string `json:"message"`
Wrapped error `json:"wrapped"`
}
Error is the orb error, it contain's a "Code" additional to the Message.
Click to show internal directories.
Click to hide internal directories.