Error() — gin Function Reference
Architecture documentation for the Error() function in context.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD a8bc4dad_6922_5a14_0307_856aa8e3ffad["Error()"] 3dc48013_1241_230c_bac7_039eeb595a5e["AbortWithError()"] 3dc48013_1241_230c_bac7_039eeb595a5e -->|calls| a8bc4dad_6922_5a14_0307_856aa8e3ffad 3840d682_85a8_dc5c_2aa7_af7268c222ee["Render()"] 3840d682_85a8_dc5c_2aa7_af7268c222ee -->|calls| a8bc4dad_6922_5a14_0307_856aa8e3ffad style a8bc4dad_6922_5a14_0307_856aa8e3ffad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context.go lines 252–268
func (c *Context) Error(err error) *Error {
if err == nil {
panic("err is nil")
}
var parsedError *Error
ok := errors.As(err, &parsedError)
if !ok {
parsedError = &Error{
Err: err,
Type: ErrorTypePrivate,
}
}
c.Errors = append(c.Errors, parsedError)
return parsedError
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does Error() do?
Error() is a function in the gin codebase.
What calls Error()?
Error() is called by 2 function(s): AbortWithError, Render.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free