MCPcopy Index your code
hub / github.com/kataras/iris / Cause

Method Cause

context/problem.go:192–198  ·  view source on GitHub ↗

Cause sets the problem's cause field. Any chain of problems.

(cause Problem)

Source from the content-addressed store, hash-verified

190// Cause sets the problem's cause field.
191// Any chain of problems.
192func (p Problem) Cause(cause Problem) Problem {
193 if !cause.Validate() {
194 return p
195 }
196
197 return p.Key("cause", cause)
198}
199
200// Validate reports whether this Problem value is a valid problem one.
201func (p Problem) Validate() bool {

Callers

nothing calls this directly

Calls 2

KeyMethod · 0.95
ValidateMethod · 0.65

Tested by

no test coverage detected