Class sdm::exception::ParsingException

Class List > sdm > exception > ParsingException

Developpers use this class to raise a parsing exception.

  • #include <exception.hpp>

Inherits the following classes: sdm::exception::Exception

Public Functions

Type Name
ParsingException (const std::string & line_details_="")
std::string get_line_details () const
Get details about lines that cause the failure.

Public Functions inherited from sdm::exception::Exception

See sdm::exception::Exception

Type Name
Exception (const std::string & msg_)
Constructor (C++ STL string).
virtual const char * what () const
Returns a pointer to the (constant) error description.

Protected Attributes

Type Name
std::string line_details

Protected Attributes inherited from sdm::exception::Exception

See sdm::exception::Exception

Type Name
std::string error_message
Error message.

Public Functions Documentation

function ParsingException

explicit sdm::exception::ParsingException::ParsingException (
    const std::string & line_details_=""
) 

Constructor (C++ STL string).

Parameters:

  • line_details_ The line where error occurs.

function get_line_details

std::string sdm::exception::ParsingException::get_line_details () const

Returns:

line details

Protected Attributes Documentation

variable line_details

std::string sdm::exception::ParsingException::line_details;

The documentation for this class was generated from the following file src/sdm/exception.hpp