![]() |
KiCad PCB EDA Suite
|
A filename or source description, a problem input line, a line number, a byte offset, and an error message which contains the the caller's report and his call site information: CPP source file, function, and line number. More...
#include <ki_exception.h>
Public Member Functions | |
PARSE_ERROR (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber, const wxString &aSource, const char *aInputLine, int aLineNumber, int aByteIndex) | |
Normally called via the macro THROW_PARSE_ERROR so that FILE, FUNCTION, and LINE can be captured from the call site. More... | |
void | init (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber, const wxString &aSource, const char *aInputLine, int aLineNumber, int aByteIndex) |
~PARSE_ERROR () throw () | |
const wxString | ParseProblem () |
void | init (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber) |
virtual const wxString | Problem () const |
what was the problem? More... | |
virtual const wxString | Where () const |
where did the Problem() occur? More... | |
virtual const wxString | What () const |
A composite of Problem() and Where() More... | |
Public Attributes | |
int | lineNumber |
at which line number, 1 based index. More... | |
int | byteIndex |
at which byte offset within the line, 1 based index More... | |
std::string | inputLine |
problem line of input [say, from a LINE_READER]. More... | |
Protected Member Functions | |
PARSE_ERROR () | |
Protected Attributes | |
wxString | parseProblem |
wxString | problem |
wxString | where |
A filename or source description, a problem input line, a line number, a byte offset, and an error message which contains the the caller's report and his call site information: CPP source file, function, and line number.
Definition at line 118 of file ki_exception.h.
|
inline |
Normally called via the macro THROW_PARSE_ERROR so that FILE, FUNCTION, and LINE can be captured from the call site.
Definition at line 133 of file ki_exception.h.
References init().
|
inline |
Definition at line 148 of file ki_exception.h.
|
inlineprotected |
Definition at line 153 of file ki_exception.h.
|
inherited |
Definition at line 52 of file exceptions.cpp.
References _, IO_ERROR::problem, and IO_ERROR::where.
Referenced by IO_ERROR::IO_ERROR().
void PARSE_ERROR::init | ( | const wxString & | aProblem, |
const char * | aThrowersFile, | ||
const char * | aThrowersFunction, | ||
int | aThrowersLineNumber, | ||
const wxString & | aSource, | ||
const char * | aInputLine, | ||
int | aLineNumber, | ||
int | aByteIndex | ||
) |
Definition at line 68 of file exceptions.cpp.
References _, byteIndex, inputLine, lineNumber, parseProblem, IO_ERROR::problem, and IO_ERROR::where.
Referenced by PARSE_ERROR().
|
inline |
Definition at line 150 of file ki_exception.h.
References parseProblem.
Referenced by PANEL_SETUP_RULES::OnCompile().
|
virtualinherited |
what was the problem?
Definition at line 45 of file exceptions.cpp.
References IO_ERROR::problem.
Referenced by FOOTPRINT_VIEWER_FRAME::ClickOnFootprintList(), SYMBOL_EDIT_FRAME::DuplicatePart(), FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), SYMBOL_LIBRARY_MANAGER::GetAliases(), PNS_LOG_FILE::Load(), PCB_TEST_FRAME_BASE::LoadAndDisplayBoard(), loadBoard(), DIALOG_BOARD_SETUP::OnAuxiliaryAction(), PCB_EDIT_FRAME::OpenProjectFiles(), and IO_ERROR::What().
|
virtualinherited |
A composite of Problem() and Where()
Definition at line 29 of file exceptions.cpp.
References IO_ERROR::Problem(), and IO_ERROR::Where().
Referenced by SYMBOL_TREE_MODEL_ADAPTER::AddLibrary(), PCB_BASE_EDIT_FRAME::AddLibrary(), SYMBOL_EDIT_FRAME::addLibTableEntry(), PCB_CONTROL::AppendBoard(), PL_EDIT_TOOL::Copy(), SCH_EDIT_FRAME::CreateArchiveLibrary(), DIALOG_PLOT_SCHEMATIC::CreateDXFFile(), DIALOG_PLOT_SCHEMATIC::createHPGLFile(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), DIALOG_PLOT_SCHEMATIC::createPSFile(), DIALOG_PLOT_SCHEMATIC::createSVGFile(), FOOTPRINT_EDIT_FRAME::DeleteFootprintFromLibrary(), SYMBOL_PREVIEW_WIDGET::DisplaySymbol(), DS_DATA_MODEL_FILEIO::DS_DATA_MODEL_FILEIO(), DS_DATA_MODEL_STRINGIO::DS_DATA_MODEL_STRINGIO(), PCB_EDIT_FRAME::Export_IDF3(), FOOTPRINT_EDIT_FRAME::ExportFootprint(), PCB_EDIT_FRAME::ExportFootprintsToLibrary(), SYMBOL_EDIT_FRAME::ExportPart(), PCB_EDIT_FRAME::ExportSpecctraFile(), GPCB_PLUGIN::FootprintEnumerate(), LEGACY_PLUGIN::FootprintEnumerate(), EAGLE_PLUGIN::FootprintEnumerate(), PCB_IO::FootprintEnumerate(), FOOTPRINT_INFO_GENERATOR::GenerateHtml(), SYMBOL_LIBRARY_MANAGER::GetAlias(), SYMBOL_LIBRARY_MANAGER::GetBufferedPart(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), SYMBOL_LIBRARY_MANAGER::GetLibrary(), SYMBOL_LIBRARY_MANAGER::getOriginalParts(), SCH_EDIT_FRAME::importFile(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), SYMBOL_EDIT_FRAME::ImportPart(), PCB_EDIT_FRAME::ImportSpecctraSession(), InvokePcbLibTableEditor(), InvokeSchEditSymbolLibTable(), PNS_LOG_FILE::Load(), FP_CACHE::Load(), GPCB_FPL_CACHE::Load(), PART_LIBS::LoadAllLibraries(), DS_DATA_MODEL::LoadDrawingSheet(), SCH_SEXPR_PLUGIN::loadHierarchy(), SCH_LEGACY_PLUGIN::loadHierarchy(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromCurrentLib(), main(), DIALOG_BOARD_SETUP::OnAuxiliaryAction(), APP_SINGLE_TOP::OnInit(), APP_TEST::OnInit(), CV::IFACE::OnKifaceStart(), PCB::IFACE::OnKifaceStart(), SCH::IFACE::OnKifaceStart(), APP_SINGLE_TOP::OnRun(), APP_TEST::OnRun(), APP_KICAD::OnRun(), DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::OpenProjectFiles(), SYMBOL_GRID_TRICKS::paste_text(), FP_GRID_TRICKS::paste_text(), PROJECT::PcbFootprintLibs(), KIWAY::Player(), DIALOG_CHOOSE_SYMBOL::PopulateFootprintSelector(), PCB_CALCULATOR_FRAME::ReadDataFile(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::ReadNetlistFromFile(), CVPCB_MAINFRAME::ReadSchematicNetlist(), SYMBOL_EDIT_FRAME::replaceLibTableEntry(), PCB_EDIT_FRAME::RunEeschema(), SYMBOL_LIBRARY_MANAGER::LIB_BUFFER::SaveBuffer(), SCH_EDIT_FRAME::SaveEEFile(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), FOOTPRINT_EDIT_FRAME::SaveLibraryAs(), PCB_EDIT_FRAME::SavePcbCopy(), PCB_EDIT_FRAME::SavePcbFile(), SCH_BASE_FRAME::saveSymbolLibTables(), SchGetLibPart(), DS_DATA_MODEL::SetPageLayout(), DIALOG_CHOOSE_SYMBOL::ShowFootprintFor(), KICAD_MANAGER_CONTROL::ShowPlayer(), DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG::TransferDataFromWindow(), DIALOG_GLOBAL_FP_LIB_TABLE_CONFIG::TransferDataFromWindow(), DIALOG_EDIT_COMPONENTS_LIBID::TransferDataFromWindow(), SCH_SCREEN::UpdateSymbolLinks(), PANEL_SYM_LIB_TABLE::verifyTables(), SYMBOL_ASYNC_LOADER::worker(), NETLIST_EXPORTER_KICAD::WriteNetlist(), and SYMBOL_LIB_TABLE_RESCUER::WriteRescueLibrary().
|
virtualinherited |
where did the Problem() occur?
Definition at line 39 of file exceptions.cpp.
References IO_ERROR::where.
Referenced by IO_ERROR::What().
int PARSE_ERROR::byteIndex |
at which byte offset within the line, 1 based index
Definition at line 121 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), init(), and PANEL_SETUP_RULES::OnCompile().
std::string PARSE_ERROR::inputLine |
problem line of input [say, from a LINE_READER].
this is brought up in original byte format rather than wxString form, incase there was a problem with the encoding, in which case converting to wxString is not reliable in this context.
Definition at line 127 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), and init().
int PARSE_ERROR::lineNumber |
at which line number, 1 based index.
Definition at line 120 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), init(), and PANEL_SETUP_RULES::OnCompile().
|
protected |
Definition at line 160 of file ki_exception.h.
Referenced by init(), and ParseProblem().
|
protectedinherited |
Definition at line 106 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), IO_ERROR::init(), init(), and IO_ERROR::Problem().
|
protectedinherited |
Definition at line 107 of file ki_exception.h.
Referenced by IO_ERROR::init(), init(), and IO_ERROR::Where().