File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,24 @@ An indefinite number of contex information to collect.<br>
9393This is particular useful to send contex details to your logger!<br>
9494This 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
You can’t perform that action at this time.
0 commit comments