public class BSONException
extends java.lang.RuntimeException
Constructor and Description |
---|
BSONException(int errorCode,
java.lang.String msg) |
BSONException(int errorCode,
java.lang.String msg,
java.lang.Throwable t) |
BSONException(java.lang.String msg) |
BSONException(java.lang.String msg,
java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getErrorCode()
Returns the error code.
|
boolean |
hasErrorCode()
Returns if the error code is set (i.e., not null).
|
public BSONException(java.lang.String msg)
msg
- The error message.public BSONException(int errorCode, java.lang.String msg)
errorCode
- The error code.msg
- The error message.public BSONException(java.lang.String msg, java.lang.Throwable t)
msg
- The error message.t
- The throwable cause.public BSONException(int errorCode, java.lang.String msg, java.lang.Throwable t)
errorCode
- The error code.msg
- The error message.t
- The throwable cause.Copyright © 2010 - 2020 Adobe. All Rights Reserved