MCPcopy
hub / github.com/alecthomas/kong / ParseError

Struct ParseError

error.go:6–10  ·  view source on GitHub ↗

ParseError is the error type returned by Kong.Parse(). It contains the parse Context that triggered the error.

Source from the content-addressed store, hash-verified

4//
5// It contains the parse Context that triggered the error.
6type ParseError struct {
7 error
8 Context *Context
9 exitCode int
10}
11
12// Unwrap returns the original cause of the error.
13func (p *ParseError) Unwrap() error { return p.error }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected