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

      @Alpha(CLIENT) public MongoExecutionTimeoutException(String message)
      Construct a new instance.
      Parameters:
      message - the error message
      Since:
      5.2
    • 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