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 ( ErrBadRequest = newHTTP(http.StatusBadRequest) // 400 ErrNotFound = newHTTP(http.StatusNotFound) // 404 ErrRequestTimeout = newHTTP(http.StatusRequestTimeout) // 408 ErrCanceled = newHTTP(499) ErrUnimplemented = newHTTP(http.StatusInternalServerError) // 500 ErrNotImplemented = newHTTP(http.StatusNotImplemented) // 501 ErrInternalServerError = newHTTP(http.StatusInternalServerError) // 500 )
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.
func (*Error) Toerror ¶
Toerror converts the "Error" to "error", same as doing <variableWithTypeError>.(error).
Click to show internal directories.
Click to hide internal directories.