1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

add mvc.Err builtin dependency to map any context/mvc response's.Err field on methods like HandleHTTPError

relative to: https://github.com/kataras/iris/issues/1606
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-31 15:26:30 +03:00
parent f20e7f1ecc
commit 7f7d8df9c0
4 changed files with 37 additions and 1 deletions

View File

@@ -16,6 +16,11 @@ type (
// http error handling in controllers.
// This can be one of the input parameters of the `Controller.HandleHTTPError`.
Code = hero.Code
// Err is a type alias for the `hero#Err`.
// It is a special type for error stored in mvc responses or context.
// It's used for a builtin dependency to map the error given by a previous
// method or middleware.
Err = hero.Err
// DeprecationOptions describes the deprecation headers key-values.
// Is a type alias for the `versioning#DeprecationOptions`.
//