SerializableBsonInvalidOperationException, BsonSerializationExceptionpublic class BSONException extends RuntimeException
| Constructor | Description |
|---|---|
BSONException(int errorCode,
String msg) |
|
BSONException(int errorCode,
String msg,
Throwable t) |
|
BSONException(String msg) |
|
BSONException(String msg,
Throwable t) |
| Modifier and Type | Method | Description |
|---|---|---|
Integer |
getErrorCode() |
Returns the error code.
|
boolean |
hasErrorCode() |
Returns if the error code is set (i.e., not null).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BSONException(String msg)
msg - The error message.public BSONException(int errorCode,
String msg)
errorCode - The error code.msg - The error message.public BSONException(String msg, Throwable t)
msg - The error message.t - The throwable cause.public Integer getErrorCode()
public boolean hasErrorCode()