Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingPassword = New("missing password", WithStatus(http.StatusBadRequest)) ErrMissingFields = New("missing fields", WithStatus(http.StatusPreconditionFailed)) ErrEmptyField = New("empty field", WithStatus(http.StatusPreconditionFailed)) ErrInvalidPassword = New("password invalid", WithStatus(http.StatusPreconditionFailed)) ErrInternalError = New("internal error", WithStatus(http.StatusForbidden)) ErrInternalDependencyError = New("internal error", WithStatus(http.StatusFailedDependency)) ErrSeedNotFound = New("seed not found", WithStatus(http.StatusNotFound)) ErrRecreatePassword = New("recreate seed password", WithStatus(http.StatusResetContent)) ErrInvalidCaptcha = New("invalid captcha", WithStatus(http.StatusUnauthorized)) ErrAlreadyConnected = New("alreadyConnected", WithStatus(http.StatusFound)) ErrNotEnoughFunds = New("not enough funds", WithStatus(http.StatusUnauthorized)) ErrorSeedPasswordInvalid = New("invalid password", WithStatus(http.StatusResetContent)) ErrCreatedBlockIsInvalid = New("new block created is invalid", WithStatus(http.StatusRequestedRangeNotSatisfiable)) ErrNotImplemented = New("not implemented", WithStatus(http.StatusNotImplemented)) )
Functions ¶
func New ¶
New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical.
func StatusCode ¶
func WithStatus ¶
func WithStatus(status int) func(*errorString)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.