Skip to main content

isDatabaseConflictError()

Home > @backstage/backend-common > isDatabaseConflictError

Tries to deduce whether a thrown error is a database conflict.

Signature:

function isDatabaseConflictError(e: unknown): boolean;

Parameters

ParameterTypeDescription
eunknownA thrown error

Returns:

boolean

True if the error looks like it was a conflict error thrown by a known database engine