Package com.mongodb.crypt.capi
Class MongoCryptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.crypt.capi.MongoCryptException
- All Implemented Interfaces:
Serializable
Exception thrown for errors originating in the mongodb-crypt module.
-
Constructor Summary
ConstructorsConstructorDescriptionMongoCryptException(String message, int code) Construct an instanceMongoCryptException(String msg, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MongoCryptException
Construct an instance- Parameters:
message- the messagecode- the code
-
MongoCryptException
- Parameters:
msg- the message
-
MongoCryptException
- Parameters:
msg- the messagecause- the cause
-
-
Method Details
-
getCode
public int getCode()- Returns:
- the error code for the exception.
-