Module ittech::error[][src]

Error management

This module reimplements/modifies a lot of the default nom error behaviour to make it actually suitable for debugging a binary parser such as this. It may be slower than the nom version but what use is a parser that's fast but gives useless output..

Structs

OutOfRangeError
ScanError

Error returned by scan function if no magic number is recognized

VerboseError

This error type accumulates errors and their position when backtracking through a parse tree. With some post processing (cf examples/json.rs), it can be used to display user friendly error messages

Enums

VerboseErrorKind

Error context for VerboseError

Traits

ContextError

Functions

convert_error

Transforms a VerboseError into a trace with input position information.