Package com.mongodb

Class 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:
  • Constructor Details

    • MongoExecutionTimeoutException

      public MongoExecutionTimeoutException(int code, String message)
      Construct a new instance.
      Parameters:
      code - the error code
      message - the error message
    • MongoExecutionTimeoutException

      public MongoExecutionTimeoutException(int code, String message, BsonDocument response)
      Construct a new instance.
      Parameters:
      code - the error code
      message - the error message
      response - the response
      Since:
      4.1