java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.neo4j.driver.exceptions.Neo4jException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientException
,DatabaseException
,DiscoveryException
,ProtocolException
,ServiceUnavailableException
,SessionExpiredException
,TransientException
This is the base class for Neo4j exceptions.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionNeo4jException
(String message) Creates a new instance.Neo4jException
(String code, String message) Creates a new instance.Neo4jException
(String code, String message, Throwable cause) Creates a new instance.Neo4jException
(String message, Throwable cause) Creates a new instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Neo4jException
Creates a new instance.- Parameters:
message
- the message
-
Neo4jException
Creates a new instance.- Parameters:
message
- the messagecause
- the cause
-
Neo4jException
Creates a new instance.- Parameters:
code
- the codemessage
- the message
-
Neo4jException
Creates a new instance.- Parameters:
code
- the codemessage
- the messagecause
- the cause
-
-
Method Details
-
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"
-