Skip to content

Commit 53fa3e8

Browse files
authored
[doc]: fix example
1 parent 0e2eb99 commit 53fa3e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ const {
1919
UnprocessableEntityException,
2020
} = require('./src');
2121

22+
* 1
2223
throw new NotFoundException('Record not found');
2324

24-
const error = new BadGatewayException('Invalid arguments');
25+
* 2
26+
const error = new ConflictException('Record already exist with that name');
2527
console.log(error.status); // 409
2628
console.log(error.error); // conflict
27-
console.log(error.message); // Invalid arguments
29+
console.log(error.message); // Record already exist with that name
2830

2931

3032
| Exception | status | error | message |

0 commit comments

Comments
 (0)