Skip to content

Commit

Permalink
remove errors method #1768
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Feb 14, 2022
1 parent 20a3fe8 commit 66edde4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions api/fiber.md
Expand Up @@ -96,23 +96,6 @@ app.Get("/", func(c *fiber.Ctx) error {
})
```
{% endcode %}
## NewErrors

NewErrors creates HTTPError instances with multiple error messages.

{% code title="Signature" %}
```go
func NewErrors(code int, messages ...interface{}) *Error
```
{% endcode %}

{% code title="Example" %}
```go
app.Get("/", func(c *fiber.Ctx) error {
return fiber.NewErrors(fiber.StatusServiceUnavailable, "error1", "error2")
})
```
{% endcode %}

## IsChild

Expand Down

0 comments on commit 66edde4

Please sign in to comment.