Documentation
¶
Overview ¶
Package problem is the form in which aicoded check, describe, dev and mcp show coded errors, in text and in JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Problem ¶
type Problem struct {
App string `json:"app,omitempty"`
Code string `json:"code,omitempty"`
Pos string `json:"pos,omitempty"`
Message string `json:"message"`
Fix string `json:"fix,omitempty"`
Docs string `json:"docs,omitempty"`
}
Problem is one coded error of an app, or an error without a code, which has only Message.
func From ¶
From returns one problem per *errs.Error in err's tree (through Unwrap() error and Unwrap() []error), or one problem with only Message when there is none.
Click to show internal directories.
Click to hide internal directories.