0.2.4 • Published 6 months ago

@haxotsoa/tsoa-auth-user-space-project v0.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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" });
0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago