Skip to content

Commit b53a6e9

Browse files
committed
ErrorHandling class now package-private
1 parent 0417189 commit b53a6e9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

driver/src/main/org/mongodb/ErrorHandling.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
import org.mongodb.operation.CommandResult;
2121

2222
// TODO: should also check for ok?
23-
public final class ErrorHandling {
24-
private ErrorHandling() {
25-
}
26-
23+
final class ErrorHandling {
2724
static void handleErrors(final CommandResult commandResult) {
2825
final Object serverErrorMessage = commandResult.getResponse().get("errmsg");
2926
if (serverErrorMessage != null) {
3027
throw new MongoCommandFailureException(commandResult);
3128
}
3229
}
30+
31+
private ErrorHandling() {
32+
}
3333
}

0 commit comments

Comments
 (0)