Bringing local and remote repository in line with one another and adding Github Actions to publish package
This commit is contained in:
parent
28db152b87
commit
74997cb676
8 changed files with 479 additions and 0 deletions
9
src/controllers/ErrorController.ts
Normal file
9
src/controllers/ErrorController.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Request, Response, NextFunction } from 'express';
|
||||
|
||||
export abstract class ErrorController {
|
||||
/** A human readable string to describe the error this controller handles. */
|
||||
public handlesError?: string;
|
||||
|
||||
|
||||
abstract handle(error: unknown, req: Request, res: Response, next: NextFunction): any | Promise<any>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue