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

Method HandleError

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

Source from the content-addressed store, hash-verified

733}
734
735func (c *testControllerErrorHandlerContinue) HandleError(ctx iris.Context, err error) {
736 if iris.IsErrPath(err) {
737 return // continue.
738 }
739
740 ctx.StopWithError(iris.StatusBadRequest, err)
741}
742
743func (c *testControllerErrorHandlerContinue) PostTest(form registerForm) string {
744 return fmt.Sprintf("%s is %d years old\n", form.Username, form.Age)

Callers

nothing calls this directly

Calls 1

StopWithErrorMethod · 0.80

Tested by

no test coverage detected