MCPcopy Create free account
hub / github.com/kataras/iris / HandleError

Method HandleError

mvc/controller_test.go:751–757  ·  view source on GitHub ↗
(ctx iris.Context, err error)

Source from the content-addressed store, hash-verified

749}
750
751func (c *testControllerFieldErrorHandlerContinue) HandleError(ctx iris.Context, err error) {
752 if iris.IsErrPath(err) {
753 return // continue.
754 }
755
756 ctx.StopWithError(iris.StatusBadRequest, err)
757}
758
759func (c *testControllerFieldErrorHandlerContinue) PostTestField() string {
760 return fmt.Sprintf("%s is %d years old\n", c.Form.Username, c.Form.Age)

Callers

nothing calls this directly

Calls 1

StopWithErrorMethod · 0.80

Tested by

no test coverage detected