-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.rkt
More file actions
33 lines (30 loc) · 1 KB
/
errors.rkt
File metadata and controls
33 lines (30 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#lang racket/base
(provide (all-defined-out))
;; Unlike the enums and bitmasks, we leave the "MDB_" prefix on these error
;; codes since they're exported symbols and INCOMPATIBLE and PANIC would be
;; uninformative constant names. At least with the prefix, it's clear that it's
;; related to this library.
;;
;; Error codes up to date as of 0.9.29/2021-03-16
(define MDB_SUCCESS 0)
(define MDB_KEYEXIST -30799)
(define MDB_NOTFOUND -30798)
(define MDB_PAGE_NOTFOUND -30797)
(define MDB_CORRUPTED -30796)
(define MDB_PANIC -30795)
(define MDB_VERSION_MISMATCH -30794)
(define MDB_INVALID -30793)
(define MDB_MAP_FULL -30792)
(define MDB_DBS_FULL -30791)
(define MDB_READERS_FULL -30790)
(define MDB_TLS_FULL -30789)
(define MDB_TXN_FULL -30788)
(define MDB_CURSOR_FULL -30787)
(define MDB_PAGE_FULL -30786)
(define MDB_MAP_RESIZED -30785)
(define MDB_INCOMPATIBLE -30784)
(define MDB_BAD_RSLOT -30783)
(define MDB_BAD_TXN -30782)
(define MDB_BAD_VALSIZE -30781)
(define MDB_BAD_DBI -30780)
(struct exn:mdb exn:fail (code))