Home / Function/ AbortWithError() — gin Function Reference

AbortWithError() — gin Function Reference

Architecture documentation for the AbortWithError() function in context.go from the gin codebase.

Function go CoreEngine Context calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  3dc48013_1241_230c_bac7_039eeb595a5e["AbortWithError()"]
  6d669e86_f8e3_8168_f834_5aad1d7da1d1["BindUri()"]
  6d669e86_f8e3_8168_f834_5aad1d7da1d1 -->|calls| 3dc48013_1241_230c_bac7_039eeb595a5e
  65cc79b1_8edb_cd69_028d_79112318d9c7["MustBindWith()"]
  65cc79b1_8edb_cd69_028d_79112318d9c7 -->|calls| 3dc48013_1241_230c_bac7_039eeb595a5e
  08757a7b_89f3_7a60_ac08_6c15ecf7b5bd["Negotiate()"]
  08757a7b_89f3_7a60_ac08_6c15ecf7b5bd -->|calls| 3dc48013_1241_230c_bac7_039eeb595a5e
  d119ae1d_d110_17b7_8a4f_cc38aedcd36a["AbortWithStatus()"]
  3dc48013_1241_230c_bac7_039eeb595a5e -->|calls| d119ae1d_d110_17b7_8a4f_cc38aedcd36a
  a8bc4dad_6922_5a14_0307_856aa8e3ffad["Error()"]
  3dc48013_1241_230c_bac7_039eeb595a5e -->|calls| a8bc4dad_6922_5a14_0307_856aa8e3ffad
  style 3dc48013_1241_230c_bac7_039eeb595a5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context.go lines 238–241

func (c *Context) AbortWithError(code int, err error) *Error {
	c.AbortWithStatus(code)
	return c.Error(err)
}

Domain

Subdomains

Frequently Asked Questions

What does AbortWithError() do?
AbortWithError() is a function in the gin codebase.
What does AbortWithError() call?
AbortWithError() calls 2 function(s): AbortWithStatus, Error.
What calls AbortWithError()?
AbortWithError() is called by 3 function(s): BindUri, MustBindWith, Negotiate.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free