File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ public final int getResultCode() {
57
57
/**
58
58
* Exception raised from a system constant table lookup.
59
59
*/
60
- public static final class ConstantDerviedException extends LmdbNativeException {
60
+ public static final class ConstantDerivedException extends LmdbNativeException {
61
61
62
62
private static final long serialVersionUID = 1L ;
63
63
64
- ConstantDerviedException (final int rc , final String message ) {
64
+ ConstantDerivedException (final int rc , final String message ) {
65
65
super (rc , "Platform constant error code: " + message );
66
66
}
67
67
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ static void checkRc(final int rc) {
110
110
throw new IllegalArgumentException ("Unknown result code " + rc );
111
111
}
112
112
final String msg = constant .name () + " " + constant .toString ();
113
- throw new LmdbNativeException .ConstantDerviedException (rc , msg );
113
+ throw new LmdbNativeException .ConstantDerivedException (rc , msg );
114
114
}
115
115
116
116
}
Original file line number Diff line number Diff line change 67
67
import static org .lmdbjava .EnvFlags .MDB_NOSUBDIR ;
68
68
import static org .lmdbjava .GetOp .MDB_SET_KEY ;
69
69
import static org .lmdbjava .KeyRange .atMost ;
70
- import org .lmdbjava .LmdbNativeException .ConstantDerviedException ;
70
+ import org .lmdbjava .LmdbNativeException .ConstantDerivedException ;
71
71
import static org .lmdbjava .PutFlags .MDB_NODUPDATA ;
72
72
import static org .lmdbjava .PutFlags .MDB_NOOVERWRITE ;
73
73
import static org .lmdbjava .TestUtils .DB_1 ;
@@ -98,7 +98,7 @@ public void before() throws IOException {
98
98
.open (path , MDB_NOSUBDIR );
99
99
}
100
100
101
- @ Test (expected = ConstantDerviedException .class )
101
+ @ Test (expected = ConstantDerivedException .class )
102
102
public void close () {
103
103
final Dbi <ByteBuffer > db = env .openDbi (DB_1 , MDB_CREATE );
104
104
db .put (bb (1 ), bb (42 ));
Original file line number Diff line number Diff line change 43
43
import org .lmdbjava .Env .MapFullException ;
44
44
import org .lmdbjava .Env .ReadersFullException ;
45
45
import org .lmdbjava .Env .VersionMismatchException ;
46
- import org .lmdbjava .LmdbNativeException .ConstantDerviedException ;
46
+ import org .lmdbjava .LmdbNativeException .ConstantDerivedException ;
47
47
import org .lmdbjava .LmdbNativeException .PageCorruptedException ;
48
48
import org .lmdbjava .LmdbNativeException .PageFullException ;
49
49
import org .lmdbjava .LmdbNativeException .PageNotFoundException ;
@@ -103,7 +103,7 @@ public void checkErrAll() {
103
103
}
104
104
}
105
105
106
- @ Test (expected = ConstantDerviedException .class )
106
+ @ Test (expected = ConstantDerivedException .class )
107
107
public void checkErrConstantDerived () {
108
108
checkRc (20 );
109
109
}
@@ -113,7 +113,7 @@ public void checkErrConstantDerivedMessage() {
113
113
try {
114
114
checkRc (2 );
115
115
fail ("Should have raised exception" );
116
- } catch (final ConstantDerviedException ex ) {
116
+ } catch (final ConstantDerivedException ex ) {
117
117
assertThat (ex .getMessage (), containsString ("No such file or directory" ));
118
118
}
119
119
}
You can’t perform that action at this time.
0 commit comments