class
#include <include/parse.hpp>
v_1_0_0::ErrorHandler Interface for ARStreamParser error handlers.
Add actual behaviour to an ARStreamParser. A concrete subclass of ErrorHandler implements the handling of parse errors the ARStreamParser signals.
Derived classes
- class v_1_0_0::DefaultErrorHandler final
- Logs every error and throws StreamReadException afterwards.
Constructors, destructors, conversion operators
- ~ErrorHandler() virtual noexcept
- Virtual default destructor.
Public functions
- void error(const uint32_t byte_pos, const uint32_t block, const uint32_t block_byte_pos)
- Error notification with global and block-relative position.
Private functions
Function documentation
void arcstk:: v_1_0_0:: ErrorHandler:: error(const uint32_t byte_pos,
const uint32_t block,
const uint32_t block_byte_pos)
Error notification with global and block-relative position.
Parameters | |
---|---|
byte_pos in | Last 1-based global byte pos read before error |
block in | 1-based block number |
block_byte_pos in | Last 1-based block byte pos read before error |
void arcstk:: v_1_0_0:: ErrorHandler:: do_error(const uint32_t byte_pos,
const uint32_t block,
const uint32_t block_byte_pos) pure virtual private
Implements error().
Parameters | |
---|---|
byte_pos in | Last 1-based global byte pos read before error |
block in | 1-based block number |
block_byte_pos in | Last 1-based block byte pos read before error |