LAL: Linear Arrangement Library 24.10.00
A library focused on algorithms on linear arrangements of graphs.
|
Head vector error report class. More...
#include <head_vector_error.hpp>
Public Member Functions | |
head_vector_error () noexcept=default | |
Default constructor. | |
head_vector_error (const std::string &msg, const head_vector_error_type &tet) noexcept | |
Constructor with error message and error type. | |
head_vector_error (std::string &&msg, const head_vector_error_type &tet) noexcept | |
Constructor with error message and error type. | |
head_vector_error (const head_vector_error &te) noexcept | |
Copy constructor. | |
head_vector_error (head_vector_error &&te) noexcept | |
Move constructor. | |
~head_vector_error ()=default | |
Destructor. | |
head_vector_error & | operator= (const head_vector_error &) noexcept=default |
Default copy assignment operator. | |
head_vector_error & | operator= (head_vector_error &&) noexcept=default |
Default move assignment operator. | |
bool | operator== (const head_vector_error_type &tet) const noexcept |
Compares this head vector error with a head vector error type. | |
bool | operator!= (const head_vector_error_type &tet) const noexcept |
Compares this head vector error with a head vector error type. | |
const std::string & | get_error_message () const noexcept |
Returns the error message. | |
head_vector_error_type | get_error_type () const noexcept |
Returns the error type. | |
Private Attributes | |
std::string | m_error_msg |
Error message. | |
head_vector_error_type | m_error_type |
Error type. | |
Head vector error report class.
This class is used only to be able to display errors found in head vectors more clearly.
Use method get_error_message to retrieve the error message.
Method get_error_type returns a value from the enumeration lal::io::head_vector_error_type.