|
PMT Renovated main-branch
Partition Manager Tool is a fast, reliable, and feature-rich CLI application for Android devices that enables advanced partition operations such as backup, flashing, erasing, information retrieval, and more.
|
A modern, throwable error class. It provides the << operator and offers usage in the std::print style of modern C++23.
More...
#include <error.hpp>
Public Member Functions | |
| Error (const Error &other) noexcept | |
| Copy constructor. | |
| template<typename... Args> | |
| Error (std::format_string< Args... > fmt, Args &&...args) | |
| Modern std::print style input field constructor. | |
| template<typename T > | |
| Error && | operator<< (const T &msg) && |
To use the << operator for receiving non-function-like inputs. | |
| Error & | operator<< (std::ostream &(*msg)(std::ostream &)) |
To receive function-like inputs, use the << operator. | |
| Error && | withCode (int _ec) |
| It is used to determine the error code when an error is thrown. | |
| int | getErrorCode () const |
| Get error code. | |
| const char * | what () const noexcept override |
| Get error message. | |
Public Member Functions inherited from std::exception | |
| T | exception (T... args) |
| T | operator= (T... args) |
| T | what (T... args) |
| T | ~exception (T... args) |
A modern, throwable error class. It provides the << operator and offers usage in the std::print style of modern C++23.