stream_error_t Class Reference |
Public Types | |
typedef std::vector < line_position_t > | position_set_t |
Public Member Functions | |
const position_set_t & | line_position_set () const |
stream_error_t (const char *what, const line_position_t &position) | |
stream_error_t (const std::string &what, const line_position_t &position) | |
stream_error_t (const std::exception &base, const line_position_t &position) | |
Related Functions | |
(Note that these are not member functions.) | |
std::string | format_stream_error (std::istream &stream, const adobe::stream_error_t &error) |
Detailed Description
Definition at line 200 of file istream.hpp.
Member Typedef Documentation
Stores a vector of adobe::line_position_t
s so the exception can be decoded to trace from where it originated.
Definition at line 203 of file istream.hpp.
Constructor & Destructor Documentation
stream_error_t | ( | const std::exception & | base, |
const line_position_t & | position | ||
) |
Definition at line 205 of file istream.hpp.
stream_error_t | ( | const char * | what, |
const line_position_t & | position | ||
) |
- Parameters:
-
what The string that is to become the what() parameter for this exception. position The stream information detailing position of failure.
Definition at line 217 of file istream.hpp.
stream_error_t | ( | const std::string & | what, |
const line_position_t & | position | ||
) |
- Parameters:
-
what The string that is to become the what() parameter for this exception. position The stream information detailing position of failure.
Definition at line 222 of file istream.hpp.
Member Function Documentation
const adobe::stream_error_t::position_set_t & line_position_set | ( | ) | const |
- Returns:
- The vector of
line_position_t
s detailing the trace history of this exception.
Definition at line 227 of file istream.hpp.
Friends And Related Function Documentation
std::string format_stream_error | ( | std::istream & | stream, |
const adobe::stream_error_t & | error | ||
) | [related] |
A function used to format data stored in an adobe::stream_error_t into something human-readable.
- Parameters:
-
stream The stream containing the parsing information from which the error came. error The error detailing the cause for the parsing failure.
- Returns:
- A string that presents the parsing failure in a human readable form. Note that the string is intended to be displayed on multiple lines with a monospaced font.