|
KiCad PCB EDA Suite
|
Holds a structured error message. More...
#include <ki_error.h>
Public Member Functions | |
| KI_ERROR () | |
| KI_ERROR (SEVERITY aSeverity, const wxString &aTitle=wxEmptyString) | |
| const wxString & | GetTitle () const |
| const wxString & | GetDescription () const |
| const wxString & | GetDebugText () const |
| SEVERITY | GetSeverity () const |
| std::chrono::system_clock::time_point | GetTimestamp () const |
| KI_ERROR & | SetTitle (const wxString &aTitle) |
| KI_ERROR & | SetDescription (const wxString &aDescription) |
| KI_ERROR & | SetDebugText (const wxString &aDebugText) |
| KI_ERROR & | SetSeverity (SEVERITY aSeverity) |
| bool | HasTitle () const |
| bool | HasDescription () const |
| bool | HasDebugText () const |
| wxString | AsString () const |
Private Attributes | |
| wxString | m_title |
| wxString | m_description |
| wxString | m_debugText |
| SEVERITY | m_severity |
| std::chrono::system_clock::time_point | m_timestamp |
Holds a structured error message.
Used to report errors in situations where you want to split up the title from a detailed description. Could also be used for an error log in the future if we want one.
Definition at line 37 of file ki_error.h.
|
inline |
Definition at line 40 of file ki_error.h.
References m_severity, m_timestamp, and RPT_SEVERITY_UNDEFINED.
Referenced by SetDebugText(), SetDescription(), SetSeverity(), and SetTitle().
|
inlineexplicit |
Definition at line 45 of file ki_error.h.
References m_severity, m_timestamp, and m_title.
| wxString KI_ERROR::AsString | ( | ) | const |
Definition at line 27 of file ki_error.cpp.
References m_debugText, m_description, and m_title.
Referenced by format_as(), WX_HTML_REPORT_BOX::generateHtml(), REPORTER::Report(), and STATUSBAR_WARNING_REPORTER::Report().
|
inline |
Definition at line 53 of file ki_error.h.
References m_debugText.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 52 of file ki_error.h.
References m_description.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 54 of file ki_error.h.
References m_severity.
Referenced by ERROR_CARD::ERROR_CARD(), REPORTER::Report(), and STATUSBAR_WARNING_REPORTER::Report().
|
inline |
Definition at line 56 of file ki_error.h.
References m_timestamp.
|
inline |
Definition at line 51 of file ki_error.h.
References m_title.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 84 of file ki_error.h.
References m_debugText.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 83 of file ki_error.h.
References m_description.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 82 of file ki_error.h.
References m_title.
Referenced by ERROR_CARD::ERROR_CARD().
|
inline |
Definition at line 70 of file ki_error.h.
References KI_ERROR(), and m_debugText.
Referenced by reportPluginLoadMessage().
|
inline |
Definition at line 64 of file ki_error.h.
References KI_ERROR(), and m_description.
Referenced by reportPluginLoadMessage().
Definition at line 76 of file ki_error.h.
References KI_ERROR(), and m_severity.
Referenced by KISTATUSBAR::AddWarningMessages(), loadLibrary(), STATUSBAR_WARNING_REPORTER::Report(), and WX_HTML_REPORT_BOX::Report().
|
inline |
Definition at line 58 of file ki_error.h.
References KI_ERROR(), and m_title.
Referenced by KISTATUSBAR::AddWarningMessages(), loadLibrary(), STATUSBAR_WARNING_REPORTER::Report(), WX_HTML_REPORT_BOX::Report(), and reportPluginLoadMessage().
|
private |
Definition at line 91 of file ki_error.h.
Referenced by AsString(), GetDebugText(), HasDebugText(), and SetDebugText().
|
private |
Definition at line 90 of file ki_error.h.
Referenced by AsString(), GetDescription(), HasDescription(), and SetDescription().
|
private |
Definition at line 92 of file ki_error.h.
Referenced by GetSeverity(), KI_ERROR(), KI_ERROR(), and SetSeverity().
|
private |
Definition at line 94 of file ki_error.h.
Referenced by GetTimestamp(), KI_ERROR(), and KI_ERROR().
|
private |
Definition at line 89 of file ki_error.h.
Referenced by AsString(), GetTitle(), HasTitle(), KI_ERROR(), and SetTitle().