Documentation ¶
Index ¶
- type Error
- type ErrorList
- func (e *ErrorList) Add(message string, loc *position.Location)
- func (e *ErrorList) Append(err *Error)
- func (e ErrorList) Err() error
- func (e ErrorList) Error() string
- func (el ErrorList) HumanString(style bool) (string, error)
- func (e ErrorList) HumanStringWithSource(source string, style bool) string
- func (e ErrorList) Join(other ErrorList) ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Represents a single error in a particular source location.
func (*Error) HumanString ¶
Return a string representation of this error that can be presented to humans.
func (*Error) HumanStringWithSource ¶
Return a string representation of this error that can be presented to humans.
type ErrorList ¶
type ErrorList []*Error
ErrorList is a list of *Errors. The zero value for an ErrorList is an empty ErrorList ready to use.
func (ErrorList) Err ¶
Err returns an error equivalent to this error list. If the list is empty, Err returns nil.
func (ErrorList) HumanString ¶
Return a string representation of this error list that can be presented to humans.
func (ErrorList) HumanStringWithSource ¶
Return a string representation of this error list that can be presented to humans.
Click to show internal directories.
Click to hide internal directories.