20#ifndef KICAD_GIT_ERRORS_H
21#define KICAD_GIT_ERRORS_H
26#include <wx/translation.h>
52 return _(
"No error" );
74 void AddError(
const wxString& aSummary,
const wxString& aDetails );
79 void AddGitError(
const wxString& aSummary );
83 AddError( aErrorString, wxEmptyString );
88 AddError( wxString( aErrorString ), wxEmptyString );
virtual ~KIGIT_ERRORS()=default
const std::vector< wxString > & GetErrorStrings() const
void AddErrorString(const wxString aErrorString)
KIGIT_ERROR_MESSAGE PopError()
Take the newest error with its details. Both are empty when none is queued.
void AddError(const wxString &aSummary, const wxString &aDetails)
A summary the user can act on, with the raw text that explains it kept apart for the details.
wxString GetErrorString()
void AddError(const KIGIT_ERROR_MESSAGE &aMessage)
std::vector< wxString > m_errorDetails
One per entry in m_errorStrings.
void AddErrorString(const std::string aErrorString)
std::vector< wxString > m_errorStrings
#define APIEXPORT
Macros which export functions from a DLL/DSO.
A summary the user can act on, with the raw text that explains it kept apart for the details.