|
LAL: Linear Arrangement Library 24.10.00
A library focused on algorithms on linear arrangements of graphs.
|
Treebank file error report class. More...
#include <treebank_file_error.hpp>
Public Member Functions | |
| treebank_file_error () noexcept=default | |
| Default constructor. | |
| treebank_file_error (const std::string &msg, const treebank_file_error_type &tet) noexcept | |
| Constructor with error message and error type. | |
| ~treebank_file_error ()=default | |
| Destructor. | |
| treebank_file_error (const treebank_file_error &te) noexcept | |
| Copy constructor. | |
| treebank_file_error (treebank_file_error &&te) noexcept | |
| Move constructor. | |
| treebank_file_error & | operator= (const treebank_file_error &te) noexcept |
| Copy assignment operator. | |
| treebank_file_error & | operator= (treebank_file_error &&te) noexcept |
| Move assignment operator. | |
| bool | operator== (const treebank_file_error_type &tet) const noexcept |
| Compares the treebank error with a treebank error type. | |
| bool | operator!= (const treebank_file_error_type &tet) const noexcept |
| Compares the treebank error with a treebank error type. | |
| const std::string & | get_error_message () const noexcept |
| Returns the error message. | |
| treebank_file_error_type | get_error_type () const noexcept |
| Returns the error type. | |
| bool | is_error () const noexcept |
| Returns whether or not this is an actual error. | |
Private Attributes | |
| std::string | m_error_msg |
| Error message. | |
| treebank_file_error_type | m_error_type |
| Error type. | |
Treebank file 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 the error message.
Method get_error_type returns a value from the enumeration lal::io::treebank_file_error_type.