1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-30 08:17:18 +00:00

Path type parameter error handler: add the parameter index in the input arguments

see previous commit
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-02-15 11:30:29 +02:00
parent 5990e7f432
commit e901575ca8
5 changed files with 19 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ type TemplateParam struct {
Name string `json:"name"`
Index int `json:"index"`
ErrCode int `json:"errCode"`
// Note that, the value MUST BE a type of `func(iris.Context, err error)`.
// Note that, the value MUST BE a type of `handler.ParamErrorHandler`.
HandleError interface{} `json:"-"` /* It's not an typed value because of import-cycle,
// neither a special struct required, see `handler.MakeFilter`. */
TypeEvaluator ParamEvaluator `json:"-"`