|
KiCad PCB EDA Suite
|
#include <kicad_git_errors.h>
Public Member Functions | |
| KIGIT_ERRORS ()=default | |
| virtual | ~KIGIT_ERRORS ()=default |
| const std::vector< wxString > & | GetErrorStrings () const |
| wxString | GetErrorString () |
| 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. | |
| void | AddError (const KIGIT_ERROR_MESSAGE &aMessage) |
| void | AddGitError (const wxString &aSummary) |
| Queue the summary with libgit2's last error as its details. | |
| void | AddErrorString (const wxString aErrorString) |
| void | AddErrorString (const std::string aErrorString) |
Private Attributes | |
| std::vector< wxString > | m_errorStrings |
| std::vector< wxString > | m_errorDetails |
| One per entry in m_errorStrings. | |
Definition at line 37 of file kicad_git_errors.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 76 of file kicad_git_errors.h.
References AddError(), KIGIT_ERROR_MESSAGE::details, and KIGIT_ERROR_MESSAGE::summary.
Referenced by AddError().
| void KIGIT_ERRORS::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.
Both are shown, so any credentials in a URL inside either one are removed here.
Definition at line 27 of file kicad_git_errors.cpp.
References m_errorDetails, m_errorStrings, and KIGIT::StripEmbeddedUserinfo().
Referenced by AddErrorString(), AddErrorString(), AddGitError(), adoptRemoteHistory(), LIBGIT_BACKEND::Amend(), LIBGIT_BACKEND::Commit(), LIBGIT_BACKEND::handleFastForward(), LIBGIT_BACKEND::handleMerge(), LIBGIT_BACKEND::InitializeRepository(), rebaseOnto(), reportRemoteLookupFailure(), KIGIT_REPO_MIXIN::ReportTransferFailure(), LIBGIT_BACKEND::SetupRemote(), and LIBGIT_BACKEND::SwitchToBranch().
|
inline |
Definition at line 86 of file kicad_git_errors.h.
References AddError().
|
inline |
Definition at line 81 of file kicad_git_errors.h.
References AddError().
Referenced by adoptRemoteHistory(), LIBGIT_BACKEND::Amend(), LIBGIT_BACKEND::Clone(), LIBGIT_BACKEND::Commit(), LIBGIT_BACKEND::handleFastForward(), LIBGIT_BACKEND::handleMerge(), LIBGIT_BACKEND::handleRebase(), LIBGIT_BACKEND::PerformFetch(), LIBGIT_BACKEND::PerformPull(), LIBGIT_BACKEND::Push(), rebaseOnto(), LIBGIT_BACKEND::SetupRemote(), and LIBGIT_BACKEND::SwitchToBranch().
| void KIGIT_ERRORS::AddGitError | ( | const wxString & | aSummary | ) |
Queue the summary with libgit2's last error as its details.
Definition at line 34 of file kicad_git_errors.cpp.
References AddError(), and KIGIT_COMMON::GetLastGitError().
Referenced by adoptRemoteHistory(), LIBGIT_BACKEND::Amend(), LIBGIT_BACKEND::Commit(), LIBGIT_BACKEND::handleFastForward(), LIBGIT_BACKEND::handleMerge(), LIBGIT_BACKEND::PerformPull(), and rebaseOnto().
|
inline |
Definition at line 49 of file kicad_git_errors.h.
References _, m_errorDetails, and m_errorStrings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 44 of file kicad_git_errors.h.
References m_errorStrings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Take the newest error with its details. Both are empty when none is queued.
Definition at line 61 of file kicad_git_errors.h.
References m_errorDetails, m_errorStrings, and message.
Referenced by GIT_COMMIT_PANE::finishCommit(), moveToNewBranch(), KICAD_MANAGER_CONTROL::NewFromRepository(), PROJECT_TREE_PANE::onGitInitializeProject(), PROJECT_TREE_PANE::onGitRemoteSettings(), PROJECT_TREE_PANE::onGitSyncTimer(), and SwitchProjectToBranch().
|
private |
One per entry in m_errorStrings.
Definition at line 94 of file kicad_git_errors.h.
Referenced by AddError(), GetErrorString(), and PopError().
|
private |
Definition at line 93 of file kicad_git_errors.h.
Referenced by AddError(), GetErrorString(), GetErrorStrings(), and PopError().