public final class MongoDbErrorCodes extends Object
MongoDbErrorCodes
holds MongoDB specific error codes outlined in mongo/base/error_codes.err.Constructor and Description |
---|
MongoDbErrorCodes() |
Modifier and Type | Method and Description |
---|---|
static String |
getErrorDescription(Integer errorCode) |
static boolean |
isDataAccessResourceFailureCode(Integer errorCode) |
static boolean |
isDataIntegrityViolationCode(Integer errorCode) |
static boolean |
isDuplicateKeyCode(Integer errorCode) |
static boolean |
isInvalidDataAccessApiUsageCode(Integer errorCode) |
static boolean |
isPermissionDeniedCode(Integer errorCode) |
public static boolean isDataIntegrityViolationCode(@Nullable Integer errorCode)
public static boolean isDataAccessResourceFailureCode(@Nullable Integer errorCode)
public static boolean isInvalidDataAccessApiUsageCode(@Nullable Integer errorCode)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.