1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-11 05:55:57 +00:00

add some MVC error handle examples

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-18 23:14:11 +03:00
parent 35ab1de212
commit 4228dd8ea4
14 changed files with 324 additions and 3 deletions

View File

@@ -72,6 +72,9 @@ type Result interface {
//
// The caller can manage it at the handler itself. However,
// to reduce thoese type of duplications it's preferable to use such a standard interface instead.
//
// The Preflight method can return `iris.ErrStopExecution` to render
// and override any interface that the structure value may implement, e.g. mvc.Result.
type PreflightResult interface {
Preflight(*context.Context) error
}