isDatabaseConflictError()
Home > @backstage/backend-plugin-api
> isDatabaseConflictError
Tries to deduce whether a thrown error is a database conflict.
Signature:
function isDatabaseConflictError(e: unknown): boolean;
Parameters
Parameter |
Type |
Description |
---|---|---|
e |
unknown |
A thrown error |
boolean
True if the error looks like it was a conflict error thrown by a known database engine