Package com.mongodb
Class MongoExecutionTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.MongoExecutionTimeoutException
-
- All Implemented Interfaces:
Serializable
public class MongoExecutionTimeoutException extends MongoException
Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.- Since:
- 2.12
- 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 MongoExecutionTimeoutException(int code, String message)
Construct 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
-
MongoExecutionTimeoutException
public MongoExecutionTimeoutException(int code, String message)
Construct a new instance.- Parameters:
code
- the error codemessage
- the error message
-
-