Documentation
¶
Overview ¶
Package parser provides error constructors for session transcript parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileError ¶
FileError wraps a per-file parse failure with the file path.
Parameters:
- path: the file path that failed to parse.
- cause: the underlying parse error.
Returns:
- error: "<path>: <cause>"
func NoMatch ¶
NoMatch returns an error when no parser can handle a file.
Parameters:
- path: the file path that no parser matched.
Returns:
- error: "no parser found for file: <path>"
func OpenFile ¶
OpenFile wraps a session file open failure.
Parameters:
- cause: the underlying error from opening the file.
Returns:
- error: "open file: <cause>"
func ParseFile ¶
ParseFile wraps a failure to parse a file.
Parameters:
- path: file path that could not be parsed
- cause: the underlying parse error
Returns:
- error: "failed to parse <path>: <cause>"
func ReadFile ¶
ReadFile wraps a session file read failure.
Parameters:
- cause: the underlying error from reading the file.
Returns:
- error: "read file: <cause>"
func ScanFile ¶
ScanFile wraps a session file scan failure.
Parameters:
- cause: the underlying error from scanning the file.
Returns:
- error: "scan file: <cause>"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.