不要怂,就是干,撸起袖子干!

Commit 69d899e2 by atrick-speedline Committed by GitHub

feat(typings): add UnknownConstraintError (#13461)

Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
1 parent 199b632b
Showing with 10 additions and 0 deletions
...@@ -157,6 +157,16 @@ export class ExclusionConstraintError extends DatabaseError { ...@@ -157,6 +157,16 @@ export class ExclusionConstraintError extends DatabaseError {
} }
/** /**
* Thrown when constraint name is not found in the database
*/
export class UnknownConstraintError extends DatabaseError {
public constraint: string;
public fields: { [field: string]: string };
public table: string;
constructor(options: { parent?: Error; message?: string; constraint?: string; fields?: string[]; table?: string });
}
/**
* Thrown when attempting to update a stale model instance * Thrown when attempting to update a stale model instance
*/ */
export class OptimisticLockError extends BaseError { export class OptimisticLockError extends BaseError {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!