cartobase  5.0.5
carto::parse_error Class Reference

parsing error More...

#include <cartobase/exception/ioexcept.h>

Inheritance diagram for carto::parse_error:
Collaboration diagram for carto::parse_error:

Public Member Functions

 parse_error (const std::string &what_arg, const std::string &token_arg, const std::string &filename_arg, int line_arg)
 Only use this version or the next one. More...
 
 parse_error (const std::string &what_arg, const std::string &token_arg, int line_arg)
 Only use this version or the previous one. More...
 
 parse_error (const std::string &what_arg, int line_arg, const std::string &filename_arg=std::string()) __attribute__((__deprecated__))
 
virtual ~parse_error () throw ()
 
int line () const
 
- Public Member Functions inherited from carto::format_error
 format_error (const std::string &arg, const std::string &filename)
 
 format_error (const std::string &filename="")
 
virtual ~format_error () throw ()
 
- Public Member Functions inherited from carto::io_error
 io_error (const std::string &arg, const std::string &filename="")
 
virtual ~io_error () throw ()
 
virtual const char * what () const throw ()
 
std::string filename () const
 

Additional Inherited Members

- Static Public Member Functions inherited from carto::io_error
static void launchErrnoExcept (const std::string &filename="")
 
static void keepExceptionPriority (std::exception &e, int &prio, int &type, std::string &message, int raiseprio=0)
 
static void launchExcept (int code, const std::string &msg, const std::string &defmsg="")
 

Detailed Description

parsing error

Definition at line 279 of file ioexcept.h.

Constructor & Destructor Documentation

◆ parse_error() [1/3]

carto::parse_error::parse_error ( const std::string &  what_arg,
const std::string &  token_arg,
const std::string &  filename_arg,
int  line_arg 
)

Only use this version or the next one.

Parameters
what_argwhat the parser was waiting for
token_argcurrent token
filename_argname of the file
line_argline where the error occured

◆ parse_error() [2/3]

carto::parse_error::parse_error ( const std::string &  what_arg,
const std::string &  token_arg,
int  line_arg 
)

Only use this version or the previous one.

Parameters
what_argwhat the parser was waiting for
token_argcurrent token
line_argline where the error occured

◆ parse_error() [3/3]

carto::parse_error::parse_error ( const std::string &  what_arg,
int  line_arg,
const std::string &  filename_arg = std::string() 
)

◆ ~parse_error()

virtual carto::parse_error::~parse_error ( )
throw (
)
virtual

Member Function Documentation

◆ line()

int carto::parse_error::line ( ) const

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