Class MongoCryptException

All Implemented Interfaces:
Serializable

public class MongoCryptException extends RuntimeException
Exception thrown for errors originating in the mongodb-crypt module.
  • Constructor Details

    • MongoCryptException

      public MongoCryptException(String message, int code)
      Construct an instance
      Parameters:
      message - the message
      code - the code
    • MongoCryptException

      public MongoCryptException(String msg)
      Parameters:
      msg - the message
    • MongoCryptException

      public MongoCryptException(String msg, Throwable cause)
      Parameters:
      msg - the message
      cause - the cause
  • Method Details

    • getCode

      public int getCode()
      Returns:
      the error code for the exception.