Package dev.grafeo.gwp.errors
Class GqlStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.grafeo.gwp.errors.GqlException
dev.grafeo.gwp.errors.GqlStatusException
- All Implemented Interfaces:
Serializable
GQL-domain error carrying a GQLSTATUS code and optional diagnostic context.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGqlStatusException(String code, String message) GqlStatusException(String code, String message, String diagnosticOperation, int diagnosticOperationCode, String diagnosticSchema) -
Method Summary
Modifier and TypeMethodDescriptioncode()The 5-character GQLSTATUS code.The diagnostic operation string, if any.intThe diagnostic operation code, if any.The diagnostic schema context, if any.The human-readable GQL status message.booleanCheck if this status represents an exception.booleanCheck if this status represents success.booleanCheck if this status represents a warning.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GqlStatusException
-
GqlStatusException
-
-
Method Details
-
code
The 5-character GQLSTATUS code. -
gqlMessage
The human-readable GQL status message. -
diagnosticOperation
The diagnostic operation string, if any. -
diagnosticOperationCode
public int diagnosticOperationCode()The diagnostic operation code, if any. -
diagnosticSchema
The diagnostic schema context, if any. -
isSuccess
public boolean isSuccess()Check if this status represents success. -
isWarning
public boolean isWarning()Check if this status represents a warning. -
isException
public boolean isException()Check if this status represents an exception.
-