Package com.mongodb

Class MongoInterruptedException

All Implemented Interfaces:

public class MongoInterruptedException extends MongoException
A driver-specific non-checked counterpart to InterruptedException. Before this exception is thrown, the interrupt status of the thread will have been set unless the cause is InterruptedIOException, in which case the driver leaves the status as is.

The Java SE API uses exceptions different from InterruptedException to communicate the same information:

The driver strives to wrap those in MongoInterruptedException where relevant.
See Also:
  • Constructor Details

    • MongoInterruptedException

      public MongoInterruptedException(@Nullable String message, @Nullable Exception e)
      Construct a new instance.
      message - the message
      e - the cause