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
public final class MongoClientEmbeddedException extends MongoException
Exceptions 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)
Constructs a new instanceMongoClientEmbeddedException(String message)
Constructs a new instance.MongoClientEmbeddedException(String message, Throwable cause)
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)
Constructs a new instance- Parameters:
errorCode
- the error codesubErrorCode
- the sub category error codereason
- the reason for the exception
-
MongoClientEmbeddedException
public MongoClientEmbeddedException(String message)
Constructs a new instance.- Parameters:
message
- the message
-
-