DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::budgeting::BudgetItemError Struct Referencefinal

Represents an error while working with a budget item. More...

#include <BudgetingErrors.h>

Inheritance diagram for drn::budgeting::BudgetItemError:
Collaboration diagram for drn::budgeting::BudgetItemError:

Public Member Functions

 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.
 
- Public Member Functions inherited from drn::foundation::Error
 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.
 

Detailed Description

Represents an error while working with a budget item.

Constructor & Destructor Documentation

◆ 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
bsThe source of the budget item involved in the error. This is required to identify the particular budget item that caused the issue.
messageA descriptive message specifying the details of the error. This is essential to convey meaningful information about the issue.
Here is the call graph for this function:

◆ BudgetItemError() [2/4]

drn::budgeting::BudgetItemError::BudgetItemError ( const BudgetSource & ,
const char * message )
delete
Here is the call graph for this function:

◆ 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
bsThe source of the budget item causing the error. This provides context for identifying the problematic budget item.
messageA descriptive message explaining the error encountered during the operation.
rootThe root exception that triggered this error. This allows chaining of exceptions to provide a clear traceback of the issue.
Here is the call graph for this function:

◆ BudgetItemError() [4/4]

drn::budgeting::BudgetItemError::BudgetItemError ( const BudgetSource & ,
const char * message,
const std::exception  )
delete
Here is the call graph for this function: