![]()  | 
  
    Awali
    
   Another Weighted Automata library 
   | 
 
Exceptions thrown during parsing. More...
#include <parse_exception.hh>
 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... | |
Exceptions thrown during parsing.
| awali::parse_exception::parse_exception | ( | const std::string & | s | ) | 
Simple constructor.
| s | the message of the exception | 
| 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
| i | the stream on which the exception is thrown | 
| s | the message of the exception | 
| 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
| p | the position on which the exception is thrown | 
| s | the message of the exception |