We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e2eb99 commit 53fa3e8Copy full SHA for 53fa3e8
README.md
@@ -19,12 +19,14 @@ const {
19
UnprocessableEntityException,
20
} = require('./src');
21
22
+* 1
23
throw new NotFoundException('Record not found');
24
-const error = new BadGatewayException('Invalid arguments');
25
+* 2
26
+const error = new ConflictException('Record already exist with that name');
27
console.log(error.status); // 409
28
console.log(error.error); // conflict
-console.log(error.message); // Invalid arguments
29
+console.log(error.message); // Record already exist with that name
30
31
32
| Exception | status | error | message |
0 commit comments