Package app.ductape.sdk.graph.utils
Class GraphError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.ductape.sdk.graph.utils.GraphError
- All Implemented Interfaces:
DuctapeError,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraphError(String message) GraphError(String message, GraphTypes.GraphErrorType type) GraphError(String message, GraphTypes.GraphErrorType type, Throwable originalError, Map<String, Object> details) -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphErrorauthenticationError(String message) code()Stable machine-readable code, suitable for logs and API envelopes.static GraphErrorconfigurationError(String message, Map<String, Object> details) static GraphErrorconnectionError(String message, Throwable originalError) static GraphErrordetails()Optional structured details; implementations may return an empty map.getType()static GraphErrornotFoundError(String message) static GraphErrorstatic GraphErrortimeoutError(String message) toMap()static GraphErrortransactionError(String message, Throwable originalError) static GraphErrorunsupportedOperationError(String operation, String graphType) static GraphErrorvalidationError(String message, Map<String, Object> details) static GraphErrorwrap(Throwable error, GraphTypes.GraphErrorType defaultType) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphError
-
GraphError
-
GraphError
-
-
Method Details
-
getType
-
getOriginalError
-
getDetails
-
code
Description copied from interface:DuctapeErrorStable machine-readable code, suitable for logs and API envelopes.- Specified by:
codein interfaceDuctapeError
-
details
Description copied from interface:DuctapeErrorOptional structured details; implementations may return an empty map.- Specified by:
detailsin interfaceDuctapeError
-
connectionError
-
queryError
-
validationError
-
notFoundError
-
constraintError
-
transactionError
-
timeoutError
-
authenticationError
-
configurationError
-
unsupportedOperationError
-
wrap
-
toMap
-