@haxotsoa/tsoa-auth-user-space-project
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

tsoa-base-service

Errors

InputValidationError

//insert into app.ts
if (err instanceof InputValidationError) {
    return res.status(err.status).json({
        message: err.message,
        details: err.fields,
    });
}

Použití:

throw new InputValidationError("Your input is not valid.");

nebo:

throw new InputValidationError("Your input is not valid.", 400, { type: "SomeType", code: "SomeCode" });

Readme

Keywords

none

Package Sidebar

Install

npm i @haxotsoa/tsoa-auth-user-space-project

Weekly Downloads

6

Version

0.2.4

License

ISC

Unpacked Size

32.9 kB

Total Files

29

Last publish

Collaborators

  • haxotsoa