Class MongoClientEmbeddedException

  • All Implemented Interfaces:
    Serializable


    public final class MongoClientEmbeddedException
    extends MongoException
    Exceptions indicating a failure condition with the embedded MongoClient.
    Since:
    3.8
    See Also:
    Serialized Form
    • Constructor Detail

      • MongoClientEmbeddedException

        public MongoClientEmbeddedException​(int errorCode,
                                            int subErrorCode,
                                            String reason)
        Constructs a new instance
        Parameters:
        errorCode - the error code
        subErrorCode - the sub category error code
        reason - the reason for the exception
      • MongoClientEmbeddedException

        public MongoClientEmbeddedException​(String message)
        Constructs a new instance.
        Parameters:
        message - the message
      • MongoClientEmbeddedException

        public MongoClientEmbeddedException​(String message,
                                            Throwable cause)
        Constructs a new instance.
        Parameters:
        message - the message
        cause - the cause