Class SecurityRetryableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.neo4j.driver.exceptions.Neo4jException
org.neo4j.driver.exceptions.ClientException
org.neo4j.driver.exceptions.SecurityException
org.neo4j.driver.exceptions.SecurityRetryableException
- All Implemented Interfaces:
Serializable, RetryableException
Indicates that the contained
SecurityException is a RetryableException, which is determined by the
AuthTokenManager.handleSecurityException(AuthToken, SecurityException) method.
The original SecurityException is always available as a Throwable.getCause(). The
code() and getMessage() supply the values from
the original exception.
- Since:
- 5.12
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityRetryableException(SecurityException exception) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncode()Access the status code for this exception.Returns the original security exception.Methods inherited from class Neo4jException
classification, containsGqlStatus, diagnosticRecord, findByGqlStatus, gqlCause, gqlStatus, rawClassification, statusDescriptionModifier and TypeMethodDescriptionReturns the error classification as aGqlStatusErrorClassificationenum value.booleancontainsGqlStatus(String gqlStatus) Returns whether there is an error with the given GQLSTATUS in this GQL error chain, beginning the search from this exception.Returns the GQL diagnostic record.findByGqlStatus(String gqlStatus) Finds the firstNeo4jExceptionthat has the given GQLSTATUS in this GQL error chain, beginning the search from this exception.gqlCause()Returns the GQL error cause.Returns the GQLSTATUS as defined by the GQL standard.Returns the error classification as aStringvalue.Returns the GQLSTATUS description.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SecurityRetryableException
Creates a new instance.- Parameters:
exception- the original security exception, must not benull
-
-
Method Details
-
code
Description copied from class:Neo4jExceptionAccess the status code for this exception. The Neo4j manual can provide further details on the available codes and their meanings.- Overrides:
codein classNeo4jException- Returns:
- textual code, such as "Neo.ClientError.Procedure.ProcedureNotFound"
-
getMessage
- Overrides:
getMessagein classThrowable
-
securityException
Returns the original security exception.- Returns:
- the original security exception
-