public class BSONException extends RuntimeException
| Constructor and 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 and Description | 
|---|---|
| Integer | getErrorCode()Returns the error code. | 
| boolean | hasErrorCode()Returns if the error code is set (i.e., not null). | 
addSuppressed, 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()