public class Neo4jError extends Object
It's put in place here in order to enforce that the TransactionalService
is strictly tied down towards what errors it handles and returns to the client, to create a waterproof abstraction
between the runtime-exception landscape that lives below, and the errors we send to the user.
This way, we make it easy to transition this service over to a unified error code based error scheme.
| Constructor and Description |
|---|
Neo4jError(org.neo4j.kernel.api.exceptions.Status status,
String message) |
Neo4jError(org.neo4j.kernel.api.exceptions.Status status,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
cause() |
String |
getMessage() |
String |
getStackTraceAsString() |
static boolean |
shouldRollBackOn(Collection<Neo4jError> errors) |
boolean |
shouldSerializeStackTrace() |
org.neo4j.kernel.api.exceptions.Status |
status() |
String |
toString() |
public Neo4jError(org.neo4j.kernel.api.exceptions.Status status,
String message)
public Neo4jError(org.neo4j.kernel.api.exceptions.Status status,
Throwable cause)
public Throwable cause()
public org.neo4j.kernel.api.exceptions.Status status()
public String getMessage()
public boolean shouldSerializeStackTrace()
public String getStackTraceAsString()
public static boolean shouldRollBackOn(Collection<Neo4jError> errors)
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.