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:
@@ -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:"-"`
|
||||
|
||||
Reference in New Issue
Block a user