Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = srverror.New(errors.New("Not Found in Database"), 404, "Not Found") ErrNoResults = srverror.Basic(204, "Empty", "No results found") ErrNameTaken = srverror.New(errors.New("Id is already in use"), 409, "Name Already Taken") ErrCorruptData = srverror.New(errors.New("unable to decode data from the database"), 500, "Error 010") ErrPermission = srverror.New(errors.New("User does not have appropriate permission"), 403, "Permission Denied") ErrIDNotReserved = srverror.Basic(500, "Error 011", "ID has not been reserved for Insert") ErrIDUnrecognized = srverror.Basic(400, "Unrecognized ID") FileLoadInProgress = &Processing{Status: 202, Message: "Processing File"} )
Error types for use across different database implementations
Functions ¶
This section is empty.
Types ¶
type Processing ¶
Processing is a record of an error that occured during processing of a file, and how to respond
func (*Processing) Equal ¶
func (pe *Processing) Equal(oth *Processing) bool
Equal is true if the status and message are equal
func (*Processing) Error ¶
func (pe *Processing) Error() string
Error implements error, returns message
Click to show internal directories.
Click to hide internal directories.