Represents an error while working with a budget item.
More...
#include <BudgetingErrors.h>
|
| BudgetItemError (const BudgetSource &, const char *message)=delete |
|
| BudgetItemError (const BudgetSource &, const char *message, const std::exception)=delete |
|
| BudgetItemError (const BudgetSource &bs, const ::QString &message) |
| Constructs a new error with a specific source and error message. This can be used when an operation related to a budget item fails and needs clear identification of the source and issue.
|
|
| BudgetItemError (const BudgetSource &bs, const ::QString &message, const std::exception &root) |
| Constructs a new error object for issues related to a budget item. This constructor emits an error description, identifying the budget item causing the problem and providing a detailed explanation along with the root exception.
|
|
| Error (const ::QString &message) |
| Error message constructor.
|
|
| Error (const ::QString &message, const std::exception &root) |
| Error and supplementary context data constructor.
|
|
| Error (const char *)=delete |
|
| Error (const char *, const std::exception &)=delete |
|
const ::QString & | message () const noexcept |
| An accessor to the error message.
|
|
Represents an error while working with a budget item.
◆ BudgetItemError() [1/4]
drn::budgeting::BudgetItemError::BudgetItemError |
( |
const BudgetSource & | bs, |
|
|
const ::QString & | message ) |
Constructs a new error with a specific source and error message. This can be used when an operation related to a budget item fails and needs clear identification of the source and issue.
Use this to provide detailed error information while performing operations on budget items. Typically triggered when invalid inputs, state violations, or logical inconsistencies occur during budget-related operations.
- Parameters
-
bs | The source of the budget item involved in the error. This is required to identify the particular budget item that caused the issue. |
message | A descriptive message specifying the details of the error. This is essential to convey meaningful information about the issue. |
◆ BudgetItemError() [2/4]
drn::budgeting::BudgetItemError::BudgetItemError |
( |
const BudgetSource & | , |
|
|
const char * | message ) |
|
delete |
◆ BudgetItemError() [3/4]
drn::budgeting::BudgetItemError::BudgetItemError |
( |
const BudgetSource & | bs, |
|
|
const ::QString & | message, |
|
|
const std::exception & | root ) |
Constructs a new error object for issues related to a budget item. This constructor emits an error description, identifying the budget item causing the problem and providing a detailed explanation along with the root exception.
This should be used to report errors that occur during budget item operations, such as invalid manipulations, state inconsistencies, or failures in processing. By using this constructor, you ensure clear communication of the issue and its origin.
- Parameters
-
bs | The source of the budget item causing the error. This provides context for identifying the problematic budget item. |
message | A descriptive message explaining the error encountered during the operation. |
root | The root exception that triggered this error. This allows chaining of exceptions to provide a clear traceback of the issue. |
◆ BudgetItemError() [4/4]
drn::budgeting::BudgetItemError::BudgetItemError |
( |
const BudgetSource & | , |
|
|
const char * | message, |
|
|
const std::exception | ) |
|
delete |