AbortWithError calls `AbortWithStatus()` and `Error()` internally. This method stops the chain, writes the status code and pushes the specified error to `c.Errors`. See Context.Error() for more details.
(code int, err error)
| 236 | // This method stops the chain, writes the status code and pushes the specified error to `c.Errors`. |
| 237 | // See Context.Error() for more details. |
| 238 | func (c *Context) AbortWithError(code int, err error) *Error { |
| 239 | c.AbortWithStatus(code) |
| 240 | return c.Error(err) |
| 241 | } |
| 242 | |
| 243 | /************************************/ |
| 244 | /********* ERROR MANAGEMENT *********/ |