Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

An exception class thrown during parsing failures. More...

#include <istream.hpp>

Inheritance diagram for stream_error_t:

Public Types

using position_set_t

Public Member Functions

 stream_error_t (const std::exception &base, const line_position_t &position)
 stream_error_t (const char *what, const line_position_t &position)
 stream_error_t (const std::string &what, const line_position_t &position)
const position_set_tline_position_set () const
 ~stream_error_t ()

Detailed Description

Definition at line 166 of file istream.hpp.

Member Typedef Documentation

◆ position_set_t

Stores a vector of adobe::line_position_ts so the exception can be decoded to trace from where it originated.

Definition at line 168 of file istream.hpp.

Constructor & Destructor Documentation

◆ stream_error_t() [1/3]

stream_error_t ( const std::exception & base,
const line_position_t & position )

Constructing from an arbitrary exception. It captures the value in base.what(). If base is a stream_error_t, it captures the line positions from the base exception.

Parameters
baseThe base exception from which the what() string is captured
positionThe stream information detailing position of failure.

Definition at line 170 of file istream.hpp.

◆ stream_error_t() [2/3]

stream_error_t ( const char * what,
const line_position_t & position )
Parameters
whatThe string that is to become the what() parameter for this exception.
positionThe stream information detailing position of failure.

Definition at line 183 of file istream.hpp.

◆ stream_error_t() [3/3]

stream_error_t ( const std::string & what,
const line_position_t & position )
Parameters
whatThe string that is to become the what() parameter for this exception.
positionThe stream information detailing position of failure.

Definition at line 186 of file istream.hpp.

◆ ~stream_error_t()

Definition at line 192 of file istream.hpp.

Member Function Documentation

◆ line_position_set()

const position_set_t & line_position_set ( ) const
Returns
The vector of line_position_ts detailing the trace history of this exception.

Definition at line 189 of file istream.hpp.