forked from jankotek/mapdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBException.java
More file actions
102 lines (75 loc) · 2.14 KB
/
Copy pathDBException.java
File metadata and controls
102 lines (75 loc) · 2.14 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package org.mapdb;
public class DBException extends RuntimeException {
public DBException(Exception cause){
super(cause);
}
public DBException(String msg){
super(msg);
}
public DBException(String msg, Exception cause){
super(msg,cause);
}
public static class RecordNotFound extends DBException{
public RecordNotFound(){
super("record not found");
}
}
public static class StoreReentry extends DBException {
public StoreReentry() {
super("repeated call to Store method");
}
}
public static class FileLocked extends DBException {
public FileLocked() {
super("file locked");
}
}
public static class PreallocRecordAccess extends DBException{
public PreallocRecordAccess(){
super("preallocated record accessed");
}
}
public static class StoreClosed extends DBException{
public StoreClosed(){
super("store closed");
}
}
public static class DataCorruption extends DBException{
public DataCorruption(){
super("data corruption");
}
public DataCorruption(String msg) {
super(msg);
}
}
public static class SerializationError extends DBException{
public SerializationError(Exception e){
super(e);
}
}
public static class WrongConfig extends DBException {
public WrongConfig(String msg) {
super(msg);
}
}
public static class WrongSerializer extends WrongConfig{
public WrongSerializer(){
super("wrong serializer used");
}
}
public static class PointerChecksumBroken extends DataCorruption{
}
public static class TODO extends DBException{
public TODO() {
super("not implemented yet");
}
public TODO(String msg) {
super(msg);
}
}
public static class RecordNotPreallocated extends DBException {
public RecordNotPreallocated() {
super("Record was not preallocated");
}
}
}