errors.go 580 B

1234567891011121314151617181920
  1. // Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
  2. // All rights reserved.
  3. //
  4. // Use of this source code is governed by a BSD-style license that can be
  5. // found in the LICENSE file.
  6. package leveldb
  7. import (
  8. "github.com/syndtr/goleveldb/leveldb/errors"
  9. )
  10. // Common errors.
  11. var (
  12. ErrNotFound = errors.ErrNotFound
  13. ErrReadOnly = errors.New("leveldb: read-only mode")
  14. ErrSnapshotReleased = errors.New("leveldb: snapshot released")
  15. ErrIterReleased = errors.New("leveldb: iterator released")
  16. ErrClosed = errors.New("leveldb: closed")
  17. )