Initial commit
This commit is contained in:
34
furcadia/errors.go
Normal file
34
furcadia/errors.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package furcadia
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// ERRORS /////////////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var (
|
||||
// ErrAlreadyConnected indicates that a FurcadiaClient instance has already
|
||||
// been connected via a Connect() call, and cannot have it done twice.
|
||||
ErrAlreadyConnected = errors.New("already connected")
|
||||
|
||||
// ErrExists is returned when we are trying to add an entry, but an
|
||||
// equivalent entry is already present and would have otherwise been
|
||||
// overwritten.
|
||||
ErrExists = errors.New("entry exists")
|
||||
|
||||
// ErrInvalidDreamURL is returned when a provided dream url is invalid.
|
||||
ErrInvalidDreamURL = errors.New("invalid dream url")
|
||||
|
||||
// ErrNotFound is returned when we were asked to change an entry, but there
|
||||
// is no entry on record.
|
||||
//
|
||||
// This is not necessarily an error if, say, we are deleting a record which
|
||||
// was already deleted. In such cases, this errors may be ignored.
|
||||
ErrNotFound = errors.New("entry not found")
|
||||
|
||||
// ErrNotImplemented indicates that a requested feature has not yet been
|
||||
// implemented and cannot be used.
|
||||
ErrNotImplemented = errors.New("not implemented")
|
||||
)
|
||||
Reference in New Issue
Block a user