Skip to content

Commit

Permalink
add docs for ErrDBClosed and IteratorError (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhodges authored Oct 19, 2019
1 parent 4f85f57 commit be6654e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (e DatabaseError) Error() string {
return "levigo: " + string(e)
}

// ErrDBClosed is returned by DB.Close when its been called previously.
var ErrDBClosed = errors.New("database is closed")

// DB is a reusable handle to a LevelDB database on disk, created by Open.
Expand Down
1 change: 1 addition & 0 deletions iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"unsafe"
)

// IteratorError wraps general internal LevelDB iterator errors for user consumption.
type IteratorError string

func (e IteratorError) Error() string {
Expand Down

0 comments on commit be6654e

Please sign in to comment.