Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A class which encapsulates information about a governance exception condition. More...
#include <governance-exceptions.h>
Public Member Functions | |
CGovernanceException (const std::string &strMessageIn="", governance_exception_type_enum_t eTypeIn=GOVERNANCE_EXCEPTION_NONE, int nNodePenaltyIn=0) | |
virtual | ~CGovernanceException () noexcept |
virtual const char * | what () const noexcept override |
const std::string & | GetMessage () const |
governance_exception_type_enum_t | GetType () const |
int | GetNodePenalty () const |
Private Attributes | |
std::string | strMessage |
governance_exception_type_enum_t | eType |
int | nNodePenalty |
Detailed Description
A class which encapsulates information about a governance exception condition.
Derives from std::exception so is suitable for throwing (ie. will be caught by a std::exception handler) but may also be used as a normal object.
Definition at line 55 of file governance-exceptions.h.
Constructor & Destructor Documentation
◆ CGovernanceException()
|
inline |
Definition at line 65 of file governance-exceptions.h.
References eType, and strMessage.
◆ ~CGovernanceException()
|
inlinevirtualnoexcept |
Definition at line 77 of file governance-exceptions.h.
Member Function Documentation
◆ GetMessage()
|
inline |
Definition at line 84 of file governance-exceptions.h.
References strMessage.
Referenced by gobject_vote_conf(), voteraw(), and VoteWithMasternodes().
◆ GetNodePenalty()
|
inline |
Definition at line 94 of file governance-exceptions.h.
References nNodePenalty.
Referenced by CGovernanceManager::ProcessMessage().
◆ GetType()
|
inline |
Definition at line 89 of file governance-exceptions.h.
References eType.
◆ what()
|
inlineoverridevirtualnoexcept |
Definition at line 79 of file governance-exceptions.h.
References strMessage.
Referenced by CGovernanceManager::ProcessMessage().
Member Data Documentation
◆ eType
|
private |
Definition at line 60 of file governance-exceptions.h.
Referenced by CGovernanceException(), and GetType().
◆ nNodePenalty
|
private |
Definition at line 62 of file governance-exceptions.h.
Referenced by GetNodePenalty().
◆ strMessage
|
private |
Definition at line 58 of file governance-exceptions.h.
Referenced by CGovernanceException(), GetMessage(), and what().
The documentation for this class was generated from the following file:
- src/governance/governance-exceptions.h