Skip to content

Commit

Permalink
adding internal error example
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielsiedler committed Jan 31, 2020
1 parent f5f37e1 commit 65590e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ throw new ValidationError({
"name": "Name is too short",
"email": "Invalid email"
}
}</code></pre></td>
</tr>
<tr>
<td><pre lang="js"><code>
throw new Error(`Invalid user ${userId}`)
</code></pre></td>
<td><pre lang="json"><code>
{
"code": 500,
"type": "InternalError",
"error": "An internal error occurred."
}</code></pre></td>
</tr>
</table>
Expand Down

0 comments on commit 65590e1

Please sign in to comment.