Package org.bson
Class BSONException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.bson.BSONException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BsonInvalidOperationException
,BsonSerializationException
@Deprecated(since="2022-10-31") public class BSONException extends java.lang.RuntimeException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A general runtime exception raised in BSON processing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BSONException(int errorCode, java.lang.String msg)
Deprecated.BSONException(int errorCode, java.lang.String msg, java.lang.Throwable t)
Deprecated.BSONException(java.lang.String msg)
Deprecated.BSONException(java.lang.String msg, java.lang.Throwable t)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Integer
getErrorCode()
Deprecated.Returns the error code.boolean
hasErrorCode()
Deprecated.Returns if the error code is set (i.e., not null).
-
-
-
Constructor Detail
-
BSONException
public BSONException(java.lang.String msg)
Deprecated.- Parameters:
msg
- The error message.
-
BSONException
public BSONException(int errorCode, java.lang.String msg)
Deprecated.- Parameters:
errorCode
- The error code.msg
- The error message.
-
BSONException
public BSONException(java.lang.String msg, java.lang.Throwable t)
Deprecated.- Parameters:
msg
- The error message.t
- The throwable cause.
-
BSONException
public BSONException(int errorCode, java.lang.String msg, java.lang.Throwable t)
Deprecated.- Parameters:
errorCode
- The error code.msg
- The error message.t
- The throwable cause.
-
-