Class MongoCryptException



  • public class MongoCryptException
    extends java.lang.RuntimeException
    Top level Exception for all Mongo Crypt CAPI exceptions
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode​()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • MongoCryptException

        public MongoCryptException​(java.lang.String msg)
        Parameters:
        msg - the message
      • MongoCryptException

        public MongoCryptException​(java.lang.String msg,
                                   java.lang.Throwable cause)
        Parameters:
        msg - the message
        cause - the cause
    • Method Detail

      • getCode

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