Package org.bson
Class BSONException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bson.BSONException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BsonInvalidOperationException,BsonSerializationException
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A general runtime exception raised in BSON processing.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBSONException(int errorCode, String msg) Deprecated.BSONException(int errorCode, String msg, Throwable t) Deprecated.BSONException(String msg) Deprecated.BSONException(String msg, Throwable t) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the error code.booleanDeprecated.Returns if the error code is set (i.e., not null).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BSONException
Deprecated.- Parameters:
msg- The error message.
-
BSONException
Deprecated.- Parameters:
errorCode- The error code.msg- The error message.
-
BSONException
Deprecated.- Parameters:
msg- The error message.t- The throwable cause.
-
BSONException
Deprecated.- Parameters:
errorCode- The error code.msg- The error message.t- The throwable cause.
-
-
Method Details
-
getErrorCode
Deprecated.Returns the error code.- Returns:
- The error code.
-
hasErrorCode
public boolean hasErrorCode()Deprecated.Returns if the error code is set (i.e., not null).- Returns:
- true if the error code is not null.
-