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

Method HandleError

hero/struct_test.go:58–60  ·  view source on GitHub ↗
(ctx iris.Context, err error)

Source from the content-addressed store, hash-verified

56type testStructErrorHandler struct{}
57
58func (s *testStructErrorHandler) HandleError(ctx iris.Context, err error) {
59 ctx.StopWithError(httptest.StatusConflict, err)
60}
61
62func (s *testStructErrorHandler) Handle(errText string) error {
63 return errors.New(errText)

Callers

nothing calls this directly

Calls 1

StopWithErrorMethod · 0.80

Tested by

no test coverage detected