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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException
,AuthorizationExpiredException
,SecurityRetryableException
,TokenExpiredException
Failed to communicate with the server due to security errors.
When this type of error happens, the security cause of the error should be fixed to ensure the safety of your data.
Restart of server/driver/cluster might be required to recover from this error.
- Since:
- 1.1
- See Also:
-
Constructor Summary
ConstructorDescriptionSecurityException
(String code, String message) Creates a new instance.SecurityException
(String gqlStatus, String statusDescription, String code, String message, Map<String, Value> diagnosticRecord, Throwable cause) Creates a new instance.SecurityException
(String message, Throwable t) Creates a new instance. -
Method Summary
Methods inherited from class org.neo4j.driver.exceptions.Neo4jException
classification, code, diagnosticRecord, gqlCause, gqlStatus, rawClassification, statusDescription
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SecurityException
Creates a new instance.- Parameters:
code
- the codemessage
- the message
-
SecurityException
Creates a new instance.- Parameters:
message
- the messaget
- the throwable
-
SecurityException
@Preview(name="GQL-error") public SecurityException(String gqlStatus, String statusDescription, String code, String message, Map<String, Value> diagnosticRecord, Throwable cause) Creates a new instance.- Parameters:
gqlStatus
- the GQLSTATUS as defined by the GQL standardstatusDescription
- the status descriptioncode
- the codemessage
- the messagediagnosticRecord
- the diagnostic recordcause
- the cause- Since:
- 5.26.0
-