Awali
Another Weighted Automata library
Public Member Functions
awali::parse_exception Struct Reference

Exceptions thrown during parsing. More...

#include <parse_exception.hh>

Inheritance diagram for awali::parse_exception:

Public Member Functions

 parse_exception (const std::string &s)
 Simple constructor. More...
 
 parse_exception (size_t p, const std::string &s)
 Exception with location. More...
 
 parse_exception (std::istream &i, const std::string &s)
 Exception with location. More...
 

Detailed Description

Exceptions thrown during parsing.

Constructor & Destructor Documentation

◆ parse_exception() [1/3]

awali::parse_exception::parse_exception ( const std::string &  s)

Simple constructor.

Parameters
sthe message of the exception

◆ parse_exception() [2/3]

awali::parse_exception::parse_exception ( std::istream &  i,
const std::string &  s 
)

Exception with location.

This constructor is devoted to exceptions which occur during the parsing of a stream. The constructor computes the position (line + column) of the stream i and adds this information before the message s

Parameters
ithe stream on which the exception is thrown
sthe message of the exception

◆ parse_exception() [3/3]

awali::parse_exception::parse_exception ( size_t  p,
const std::string &  s 
)

Exception with location.

This constructor is devoted to exceptions which occur during the parsing of a string. The constructor adds the position p before the message s

Parameters
pthe position on which the exception is thrown
sthe message of the exception

The documentation for this struct was generated from the following file: