- All Superinterfaces:
GqlStatusObject
- All Known Implementing Classes:
InternalNotification
Representation for notifications found when executing a query.
A notification can be visualized in a client pinpointing problems or other information about the query.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<NotificationCategory>
category()
Returns the category of the notification.default Optional<NotificationClassification>
ReturnsNotificationClassification
derived from the diagnostic record.code()
Returns a notification code for the discovered issue.Returns a longer description of the notification.default Optional<InputPosition>
Returns a position in the query where this notification points to.position()
The position in the query where this notification points to.Returns the raw category of the notification as a String returned by the server.Returns notification classification from the diagnostic record as aString
value retrieved directly from the diagnostic record.Returns the raw severity level of the notification as a String value retrieved directly from the diagnostic record.default String
severity()
Deprecated.default Optional<NotificationSeverity>
Returns the severity level of the notification derived from the diagnostic record.title()
Returns a short summary of the notification.Methods inherited from interface org.neo4j.driver.summary.GqlStatusObject
diagnosticRecord, gqlStatus, statusDescription
-
Method Details
-
code
String code()Returns a notification code for the discovered issue.- Returns:
- the notification code
-
title
String title()Returns a short summary of the notification.- Returns:
- the title of the notification.
- See Also:
-
description
String description()Returns a longer description of the notification.- Returns:
- the description of the notification.
-
position
InputPosition position()The position in the query where this notification points to. Not all notifications have a unique position to point to and in that case the position would be set to null.- Returns:
- the position in the query where the issue was found, or null if no position is associated with this notification.
-
inputPosition
Returns a position in the query where this notification points to.Not all notifications have a unique position to point to and in that case an empty
Optional
is returned.- Returns:
- an
Optional
of theInputPosition
if available or an emptyOptional
otherwise - Since:
- 5.22.0
-
severity
Deprecated.superseded byseverityLevel()
andrawSeverityLevel()
The severity level of the notification.- Returns:
- the severity level of the notification
-
severityLevel
Returns the severity level of the notification derived from the diagnostic record.- Returns:
- the severity level of the notification
- Since:
- 5.7
- See Also:
-
rawSeverityLevel
Returns the raw severity level of the notification as a String value retrieved directly from the diagnostic record.- Returns:
- the severity level of the notification
- Since:
- 5.7
- See Also:
-
classification
ReturnsNotificationClassification
derived from the diagnostic record.- Returns:
- an
Optional
ofNotificationClassification
or an emptyOptional
when the classification is either absent or unrecognised - Since:
- 5.22.0
- See Also:
-
rawClassification
Returns notification classification from the diagnostic record as aString
value retrieved directly from the diagnostic record. -
category
Returns the category of the notification.- Returns:
- the category of the notification
- Since:
- 5.7
-
rawCategory
Returns the raw category of the notification as a String returned by the server.- Returns:
- the category of the notification
- Since:
- 5.7
-
severityLevel()
andrawSeverityLevel()