static String
TRANSIENT_TRANSACTION_ERROR_LABEL
An error label indicating that the exception can be treated as a transient transaction error.
static String
UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
An error label indicating that the exception can be treated as an unknown transaction commit result.
MongoException(int code, String msg)
MongoException(int code, String msg, Throwable t)
MongoException(String msg)
MongoException(String msg, Throwable t)
void
addLabel(String errorLabel)
Adds the given error label to the exception.
static MongoException
fromThrowable(Throwable t)
Static helper to create or cast a MongoException from a throwable
static MongoException
fromThrowableNonNull(Throwable t)
Static helper to create or cast a MongoException from a throwable
int
getCode()
Gets the exception code
Set<String>
getErrorLabels()
Gets the set of error labels associated with this exception.
boolean
hasErrorLabel(String errorLabel)
Return true if the exception is labelled with the given error label, and false otherwise.
void
removeLabel(String errorLabel)
Removes the given error label from the exception.
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4