LAL: Linear Arrangement Library 23.01.00
A library focused on algorithms on linear arrangements of graphs.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
lal::io::treebank_error Class Reference

Treebank error report class. More...

#include <treebank_error.hpp>

Public Member Functions

 treebank_error (const std::string &msg, const treebank_error_type &tet) noexcept
 Constructor with error message and error type.
 
 treebank_error (const treebank_error &te) noexcept
 Copy constructor.
 
 treebank_error (treebank_error &&te) noexcept
 Move constructor.
 
treebank_erroroperator= (const treebank_error &te) noexcept
 Copy assignment operator.
 
treebank_erroroperator= (treebank_error &&te) noexcept
 Move assignment operator.
 
bool operator== (const treebank_error_type &tet) const noexcept
 Compares a treebank error with a treebank error type.
 
bool operator!= (const treebank_error_type &tet) const noexcept
 Compares a treebank error with a treebank error type.
 
const std::string & get_error_message () const noexcept
 Retrieve the error message.
 
treebank_error_type get_error_type () const noexcept
 Retrieve the error type.
 

Private Attributes

std::string m_error_msg
 Error message.
 
treebank_error_type m_error_type
 Error type.
 

Detailed Description

Treebank error report class.

This class is used only to be able to display errors arising in treebank processing more clearly.

Use method get_error_message to retrieve an error message.

Method get_error_type returns a value from the enumeration lal::io::treebank_error_type.


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