Class Neo4jException
The base class for all Neo4j exceptions.
[DataContract]
public class Neo4jException : Exception
- Inheritance
-
Neo4jException
- Derived
- Inherited Members
- Extension Methods
Remarks
GQL errors may include a cause chain. When present, the GQL cause is exposed as InnerException, which may itself be a Neo4jException with its own cause. The full chain can be walked using the standard .NET InnerException property.
Constructors
- Neo4jException()
Create a new Neo4jException
- Neo4jException(string)
Create a new Neo4jException with an error message
- Neo4jException(string, Exception)
Create a new Neo4jException with an error message and an exception.
- Neo4jException(string, string)
Create a new Neo4jException with an error code and an error message
- Neo4jException(string, string, Exception)
Create a new Neo4jException with an error code, an error message and an exception.
Properties
- Code
Gets or sets the code of a Neo4j exception.
- GqlClassification
Gets the GQL classification of the exception.
- GqlDiagnosticRecord
Gets further information about the status for diagnostic purposes.
- GqlRawClassification
The raw classification as received from the server.
- GqlStatus
Gets the GQL status of the exception.
- GqlStatusDescription
Gets the GQL status description of the exception.
- IsRetriable
Gets whether the exception is retryable or not.
Important Note: Methods that use Autocommit transactions
RunAsync(string, Action<TransactionConfigBuilder>),
RunAsync(string, IDictionary<string, object>, Action<TransactionConfigBuilder>),
and
RunAsync(Query, Action<TransactionConfigBuilder>)
are not retryable regardless of this value.
Methods
- ContainsGqlStatus(string)
Returns whether this exception, or any Neo4jException in its GQL cause chain, has the specified GQL status code.
- FindByGqlStatus(string)
Returns the first Neo4jException in the GQL cause chain — starting with this exception — whose GqlStatus matches the specified value.
- TryFindByGqlStatus(string, out Neo4jException)
Searches the GQL cause chain — starting with this exception — for a Neo4jException whose GqlStatus matches the specified value.