Package com.mongodb.embedded.client
Class MongoClientEmbeddedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.embedded.client.MongoClientEmbeddedException
-
- All Implemented Interfaces:
Serializable
@Deprecated public final class MongoClientEmbeddedException extends MongoException
Deprecated.the embedded driver will be removed in the next major releaseExceptions indicating a failure condition with the embedded MongoClient.- Since:
- 3.8
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoClientEmbeddedExceptionβ(int errorCode, int subErrorCode, String reason)
Deprecated.Constructs a new instanceMongoClientEmbeddedExceptionβ(String message)
Deprecated.Constructs a new instance.MongoClientEmbeddedExceptionβ(String message, Throwable cause)
Deprecated.Constructs a new instance.
-
Method Summary
-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MongoClientEmbeddedException
public MongoClientEmbeddedExceptionβ(int errorCode, int subErrorCode, String reason)
Deprecated.Constructs a new instance- Parameters:
errorCode
- the error codesubErrorCode
- the sub category error codereason
- the reason for the exception
-
MongoClientEmbeddedException
public MongoClientEmbeddedExceptionβ(String message)
Deprecated.Constructs a new instance.- Parameters:
message
- the message
-
-