Skip to content

Commit b4ce83b

Browse files
author
simonepri
committed
Improve readme
1 parent 09847fe commit b4ce83b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,24 @@ An indefinite number of contex information to collect.<br>
9393
This is particular useful to send contex details to your logger!<br>
9494
This will never sent to the client so you can store server critical messages. (E.g; errors coming from third pary APIs or errors coming from your DB)
9595
96+
### thrown(err, [type])
97+
98+
Checks if a specific Restify error was thrown.
99+
100+
#### err
101+
102+
Type: `object`
103+
104+
The object to check
105+
106+
#### type
107+
108+
Type: `string`
109+
Default: `undefined`
110+
111+
The type of error that the object should be instance of.
112+
If undefined it just checks if the object is instance of Error.
113+
96114
## Authors
97115
* **Simone Primarosa** - [simonepri](https://github.com/simonepri)
98116

0 commit comments

Comments
 (0)