Initial commit

This commit is contained in:
2026-01-19 01:51:08 +02:00
commit 2dbb7e5d7e
18 changed files with 1475 additions and 0 deletions

34
furcadia/errors.go Normal file
View 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")
)