Class Neo4jException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientException, DatabaseException, DiscoveryException, ProtocolException, ServiceUnavailableException, SessionExpiredException, TransientException

public class Neo4jException extends RuntimeException
This is the base class for Neo4j exceptions.
Since:
1.0
See Also:
  • Constructor Details

    • Neo4jException

      public Neo4jException(String message)
      Creates a new instance.
      Parameters:
      message - the message
    • Neo4jException

      public Neo4jException(String message, Throwable cause)
      Creates a new instance.
      Parameters:
      message - the message
      cause - the cause
    • Neo4jException

      public Neo4jException(String code, String message)
      Creates a new instance.
      Parameters:
      code - the code
      message - the message
    • Neo4jException

      public Neo4jException(String code, String message, Throwable cause)
      Creates a new instance.
      Parameters:
      code - the code
      message - the message
      cause - the cause
  • Method Details

    • code

      public String code()
      Access the status code for this exception. The Neo4j manual can provide further details on the available codes and their meanings.
      Returns:
      textual code, such as "Neo.ClientError.Procedure.ProcedureNotFound"