![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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 () throw () |
virtual const char * | what () const throw () |
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 |
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.
|
inline |
Definition at line 65 of file governance-exceptions.h.
|
inlinevirtual |
Definition at line 77 of file governance-exceptions.h.
|
inline |
Definition at line 84 of file governance-exceptions.h.
|
inline |
Definition at line 94 of file governance-exceptions.h.
Referenced by CGovernanceManager::ProcessMessage().
|
inline |
Definition at line 89 of file governance-exceptions.h.
|
inlinevirtual |
Definition at line 79 of file governance-exceptions.h.
Referenced by CGovernanceObject::CheckOrphanVotes(), and CGovernanceManager::ProcessMessage().
|
private |
Definition at line 60 of file governance-exceptions.h.
Referenced by CGovernanceException(), and GetType().
|
private |
Definition at line 62 of file governance-exceptions.h.
Referenced by GetNodePenalty().
|
private |
Definition at line 58 of file governance-exceptions.h.
Referenced by CGovernanceException(), GetMessage(), and what().