View Javadoc
1   package org.neo4j.driver.exception;
2   
3   /**
4    * Main exception class for this project.
5    */
6   public class Neo4jClientException extends RuntimeException {
7   
8       /**
9        * Constructor that wraps the given exception.
10       *
11       * @param e The underlying exception.
12       */
13      public Neo4jClientException(Exception e) {
14          super(e.getMessage(), e.getCause());
15      }
16  
17      /**
18       * Constructor with only a message.
19       *
20       * @param message Message of the exception
21       */
22      public Neo4jClientException(String message) {
23          super(message);
24      }
25  
26  }