Wrapper for transaction errors.
More...
#include <tx_error_messages.hpp>
Wrapper for transaction errors.
Definition at line 168 of file tx_error_messages.hpp.
◆ tx_error() [1/7]
cbdc::watchtower::tx_error::tx_error |
( |
| ) |
|
|
delete |
◆ tx_error() [2/7]
Sync error constructor.
- Parameters
-
tx_id | the transaction ID to which this error pertains. |
err | sync error. |
Definition at line 116 of file tx_error_messages.cpp.
◆ tx_error() [3/7]
Input does-not-exist error constructor.
- Parameters
-
tx_id | the transaction ID to which this error pertains. |
err | does-not-exist error. |
Definition at line 120 of file tx_error_messages.cpp.
◆ tx_error() [4/7]
STXO range error constructor.
- Parameters
-
tx_id | the transaction ID to which this error pertains. |
err | STXO range error. |
Definition at line 124 of file tx_error_messages.cpp.
◆ tx_error() [5/7]
Incomplete error constructor.
- Parameters
-
tx_id | the transaction ID to which this error pertains. |
err | incomplete error. |
Definition at line 128 of file tx_error_messages.cpp.
◆ tx_error() [6/7]
Inputs spent error constructor.
- Parameters
-
tx_id | the transaction ID to which this error pertains. |
err | inputs spent error. |
Definition at line 132 of file tx_error_messages.cpp.
◆ tx_error() [7/7]
◆ info()
Returns the type and associated information about this error.
- Returns
- error information.
Definition at line 84 of file tx_error_messages.cpp.
◆ operator==()
auto cbdc::watchtower::tx_error::operator== |
( |
const tx_error & | rhs | ) |
const -> bool |
◆ to_string()
auto cbdc::watchtower::tx_error::to_string |
( |
| ) |
const -> std::string |
|
nodiscard |
Returns a human-friendly description of the error.
- Returns
- error description.
Definition at line 88 of file tx_error_messages.cpp.
◆ tx_id()
auto cbdc::watchtower::tx_error::tx_id |
( |
| ) |
const -> hash_t |
|
nodiscard |
Returns the transaction ID to which this error pertains.
- Returns
- Tx ID.
Definition at line 80 of file tx_error_messages.cpp.
◆ cbdc::operator<<
◆ cbdc::operator>>
The documentation for this class was generated from the following files: