stlab.adobe.com Adobe Systems Incorporated

An exception class thrown during parsing failures.

#include <istream.hpp>

List of all members.

Public Types

typedef std::vector
< line_position_t
position_set_t

Public Member Functions

const position_set_tline_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_ts 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:
whatThe string that is to become the what() parameter for this exception.
positionThe 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:
whatThe string that is to become the what() parameter for this exception.
positionThe 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_ts 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:
streamThe stream containing the parsing information from which the error came.
errorThe 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.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google