Documentation ¶
Overview ¶
Package errors provides common error types used throughout leveldb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = New("leveldb: not found") ErrReleased = util.ErrReleased ErrHasReleaser = util.ErrHasReleaser )
Common errors.
Functions ¶
func IsCorrupted ¶
IsCorrupted returns a boolean indicating whether the error is indicating a corruption.
func NewErrCorrupted ¶
NewErrCorrupted creates new ErrCorrupted error.
Types ¶
type ErrCorrupted ¶
ErrCorrupted is the type that wraps errors that indicate corruption in the database.
func (*ErrCorrupted) Error ¶
func (e *ErrCorrupted) Error() string
type ErrMissingFiles ¶
ErrMissingFiles is the type that indicating a corruption due to missing files. ErrMissingFiles always wrapped with ErrCorrupted.
func (*ErrMissingFiles) Error ¶
func (e *ErrMissingFiles) Error() string
Click to show internal directories.
Click to hide internal directories.