Package app.ductape.sdk.database.utils
Class DatabaseError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.ductape.sdk.database.utils.DatabaseError
- All Implemented Interfaces:
DuctapeError,Serializable
Parity with
sdk/ts/src/database/utils/database-error.ts (typed DatabaseTypes.DatabaseErrorType).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseError(String message) DatabaseError(String message, DatabaseTypes.DatabaseErrorType type) DatabaseError(String message, DatabaseTypes.DatabaseErrorType type, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptioncode()Stable machine-readable code, suitable for logs and API envelopes.static DatabaseErrorconfigurationError(String message) static DatabaseErrornotFoundError(String message) static DatabaseErrornotSupportedError(String message) static DatabaseErrortransactionError(String message) static DatabaseErrortransactionError(String message, Throwable cause) static DatabaseErrorvalidationError(String message) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface app.ductape.sdk.core.errors.DuctapeError
details
-
Constructor Details
-
DatabaseError
-
DatabaseError
-
DatabaseError
-
-
Method Details
-
getErrorType
-
code
Description copied from interface:DuctapeErrorStable machine-readable code, suitable for logs and API envelopes.- Specified by:
codein interfaceDuctapeError
-
validationError
-
notFoundError
-
configurationError
-
notSupportedError
-
transactionError
-
transactionError
-