public class BSONException extends RuntimeException
构造器和说明 |
---|
BSONException(int errorCode,
String msg) |
BSONException(int errorCode,
String msg,
Throwable t) |
BSONException(String msg) |
BSONException(String msg,
Throwable t) |
限定符和类型 | 方法和说明 |
---|---|
Integer |
getErrorCode()
Returns the error code.
|
boolean |
hasErrorCode()
Returns true if the error code is set (i.e., not null).
|
public BSONException(int errorCode, String msg)
errorCode
- The error code.msg
- The error message.public BSONException(int errorCode, String msg, Throwable t)
errorCode
- The error code.msg
- The error message.t
- The throwable cause.public BSONException(String msg)
msg
- The error message.public Integer getErrorCode()
public boolean hasErrorCode()
Copyright © 2018. All rights reserved.