github.com/rosedblabs/rosedb/v2@v2.3.7-0.20240423093736-a89ea823e5b9/errors.go (about)

     1  package rosedb
     2  
     3  import "errors"
     4  
     5  var (
     6  	ErrKeyIsEmpty      = errors.New("the key is empty")
     7  	ErrKeyNotFound     = errors.New("key not found in database")
     8  	ErrDatabaseIsUsing = errors.New("the database directory is used by another process")
     9  	ErrReadOnlyBatch   = errors.New("the batch is read only")
    10  	ErrBatchCommitted  = errors.New("the batch is committed")
    11  	ErrBatchRollbacked = errors.New("the batch is rollbacked")
    12  	ErrDBClosed        = errors.New("the database is closed")
    13  	ErrMergeRunning    = errors.New("the merge operation is running")
    14  	ErrWatchDisabled   = errors.New("the watch is disabled")
    15  )