| 
    KiCad PCB EDA Suite
    
   | 
 
Variant of PARSE_ERROR indicating that a syntax or related error was likely caused by a file generated by a newer version of KiCad than this. More...
#include <ki_exception.h>
  
Public Member Functions | |
| FUTURE_FORMAT_ERROR (const wxString &aRequiredVersion, const wxString &aRequiredGenerator=wxEmptyString) | |
| FUTURE_FORMAT_ERROR (const PARSE_ERROR &aParseError, const wxString &aRequiredVersion, const wxString &aRequiredGenerator=wxEmptyString) | |
| ~FUTURE_FORMAT_ERROR () throw () | |
| void | init (const wxString &aRequiredVersion, const wxString &aRequiredGenerator=wxEmptyString) | 
| void | init (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber, const wxString &aSource, const char *aInputLine, int aLineNumber, int aByteIndex) | 
| void | init (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber) | 
| const wxString | ParseProblem () | 
| virtual const wxString | Problem () const | 
| what was the problem?   | |
| virtual const wxString | Where () const | 
| where did the Problem() occur?   | |
| virtual const wxString | What () const | 
| A composite of Problem() and Where()   | |
Public Attributes | |
| wxString | requiredVersion | 
| Date of KiCad file format required to open file.   | |
| wxString | requiredGenerator | 
| Version of KiCad required to open file.   | |
| int | lineNumber | 
| at which line number, 1 based index.   | |
| int | byteIndex | 
| at which byte offset within the line, 1 based index   | |
| std::string | inputLine | 
| problem line of input [say, from a LINE_READER].   | |
Protected Attributes | |
| wxString | parseProblem | 
| wxString | problem | 
| wxString | where | 
Variant of PARSE_ERROR indicating that a syntax or related error was likely caused by a file generated by a newer version of KiCad than this.
This can be used to generate more informative error messages.
Definition at line 175 of file ki_exception.h.
| FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR | ( | const wxString & | aRequiredVersion, | 
| const wxString & | aRequiredGenerator = wxEmptyString ) | 
Definition at line 126 of file exceptions.cpp.
References PARSE_ERROR::byteIndex, init(), PARSE_ERROR::lineNumber, and PARSE_ERROR::PARSE_ERROR().
Referenced by FUTURE_FORMAT_ERROR().
| FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR | ( | const PARSE_ERROR & | aParseError, | 
| const wxString & | aRequiredVersion, | ||
| const wxString & | aRequiredGenerator = wxEmptyString ) | 
Definition at line 137 of file exceptions.cpp.
References _, PARSE_ERROR::byteIndex, FUTURE_FORMAT_ERROR(), init(), PARSE_ERROR::inputLine, PARSE_ERROR::lineNumber, PARSE_ERROR::PARSE_ERROR(), IO_ERROR::Problem(), IO_ERROR::problem, requiredGenerator, and requiredVersion.
      
  | 
  inline | ||||||||||||
Definition at line 184 of file ki_exception.h.
| void FUTURE_FORMAT_ERROR::init | ( | const wxString & | aRequiredVersion, | 
| const wxString & | aRequiredGenerator = wxEmptyString ) | 
Definition at line 101 of file exceptions.cpp.
References _, IO_ERROR::problem, requiredGenerator, and requiredVersion.
Referenced by FUTURE_FORMAT_ERROR(), and FUTURE_FORMAT_ERROR().
      
  | 
  inherited | 
Definition at line 53 of file exceptions.cpp.
References problem, and where.
Referenced by IO_ERROR().
      
  | 
  inherited | 
Definition at line 71 of file exceptions.cpp.
References _, byteIndex, inputLine, lineNumber, parseProblem, IO_ERROR::problem, and IO_ERROR::where.
Referenced by PARSE_ERROR().
      
  | 
  inlineinherited | 
Definition at line 151 of file ki_exception.h.
References parseProblem.
Referenced by PANEL_SETUP_RULES::OnCompile().
      
  | 
  virtualinherited | 
what was the problem?
Definition at line 46 of file exceptions.cpp.
References problem.
Referenced by SIM_MODEL::Create(), SIM_MODEL::Create(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET::DisplayDesignBlock(), SYMBOL_EDIT_FRAME::DuplicateSymbol(), PCB_EDIT_FRAME::FetchNetlistFromSchematic(), FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), PNS_LOG_FILE::Load(), PCB_TEST_FRAME_BASE::LoadAndDisplayBoard(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::OpenProjectFiles(), and What().
      
  | 
  virtualinherited | 
A composite of Problem() and Where()
Definition at line 30 of file exceptions.cpp.
References Problem(), and Where().
Referenced by PCB_BASE_EDIT_FRAME::AddLibrary(), PCB_CONTROL::AppendBoard(), PCB_IO_MGR::ConvertLibrary(), PL_EDIT_TOOL::Copy(), SIM_MODEL::Create(), SCH_PLOTTER::createDXFFiles(), LIBRARY_MANAGER::CreateGlobalTable(), DESIGN_BLOCK_PANE::createNewDesignBlockLibrary(), PCB_BASE_EDIT_FRAME::createNewLibrary(), SCH_PLOTTER::createPDFFile(), SCH_PLOTTER::createPSFiles(), SCH_PLOTTER::createSVGFiles(), DESIGN_BLOCK_PANE::DeleteDesignBlockFromLibrary(), DESIGN_BLOCK_PANE::DeleteDesignBlockLibrary(), FOOTPRINT_EDIT_FRAME::DeleteFootprintFromLibrary(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET::DisplayDesignBlock(), SYMBOL_PREVIEW_WIDGET::DisplaySymbol(), DS_DATA_MODEL_FILEIO::DS_DATA_MODEL_FILEIO(), DS_DATA_MODEL_STRINGIO::DS_DATA_MODEL_STRINGIO(), DESIGN_BLOCK_PANE::EditDesignBlockProperties(), PCB_EDIT_FRAME::Export_IDF3(), FOOTPRINT_EDIT_FRAME::ExportFootprint(), PCB_EDIT_FRAME::ExportFootprintsToLibrary(), PCB_EDIT_FRAME::ExportSpecctraFile(), SYMBOL_EDIT_FRAME::ExportSymbol(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), PCB_EDIT_FRAME::FetchNetlistFromSchematic(), PCB_IO_EAGLE::FootprintEnumerate(), PCB_IO_GEDA::FootprintEnumerate(), PCB_IO_KICAD_LEGACY::FootprintEnumerate(), PCB_IO_KICAD_SEXPR::FootprintEnumerate(), FOOTPRINT_INFO_GENERATOR::GenerateHtml(), DESIGN_BLOCK_TREE_MODEL_ADAPTER::GenerateInfo(), DIALOG_EXPORT_ODBPP::GenerateODBPPFiles(), SYMBOL_LIBRARY_MANAGER::GetBufferedSymbol(), DESIGN_BLOCK_PANE::GetDesignBlock(), DESIGN_BLOCK_LIBRARY_ADAPTER::GetDesignBlocks(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), SYMBOL_LIBRARY_MANAGER::GetSymbol(), SYMBOL_LIBRARY_ADAPTER::GetSymbols(), PGM_BASE::HandleException(), SCH_EDIT_FRAME::importFile(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), PCB_EDIT_FRAME::ImportSpecctraSession(), SYMBOL_EDIT_FRAME::ImportSymbol(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobUpgrade(), PCBNEW_JOBS_HANDLER::JobUpgrade(), PROJECT_SCH::LegacySchLibs(), FP_CACHE::Load(), GPCB_FPL_CACHE::Load(), LTSPICE_SCHEMATIC::Load(), PNS_LOG_FILE::Load(), SCH_IO_KICAD_SEXPR_LIB_CACHE::Load(), LEGACY_SYMBOL_LIBS::LoadAllLibraries(), KI_TEST::LoadBoard(), DS_DATA_MODEL::LoadDrawingSheet(), PCB::IFACE::loadGlobalLibTable(), SCH_IO_KICAD_LEGACY::loadHierarchy(), SCH_IO_KICAD_SEXPR::loadHierarchy(), SYMBOL_LIBRARY_ADAPTER::LoadOne(), SCH_IO_LTSPICE::LoadSchematicFile(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_EDIT_FRAME::LoadSymbol(), SYMBOL_EDIT_FRAME::LoadSymbolFromCurrentLib(), DIALOG_LIB_FIELDS_TABLE::loadSymbols(), LoadVRML(), main(), KIGIT_PCB_MERGE::Merge(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), APP_TEST::OnInit(), CV::IFACE::OnKifaceStart(), DIALOG_EXPORT_2581::onOKClick(), APP_TEST::OnRun(), DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged(), DIALOG_SIM_MODEL< T >::onWaveformChoice(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), SPICE_LIBRARY_PARSER::parseFile(), PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked(), SCH_IO_KICAD_SEXPR_PARSER::parseLibSymbol(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), PROJECT::PcbFootprintLibs(), PROJECT_PCB::PcbFootprintLibs(), PANEL_SYMBOL_CHOOSER::populateFootprintSelector(), PANEL_REGULATOR::ReadDataFile(), CVPCB_MAINFRAME::readNetListAndFpFiles(), PCB_EDIT_FRAME::ReadNetlistFromFile(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), CVPCB_MAINFRAME::readSchematicNetlist(), FOOTPRINT_EDITOR_CONTROL::RenameFootprint(), LIBRARY_TABLE::Save(), PCB_EDIT_FRAME::SaveBoardAsDesignBlock(), PCB_EDIT_FRAME::saveBoardAsFile(), PCB_EDIT_FRAME::SaveBoardToDesignBlock(), DRC_BASE_FIXTURE::SaveBoardToFile(), LIB_BUFFER::SaveBuffer(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), FOOTPRINT_EDIT_FRAME::SaveLibraryAs(), PCB_EDIT_FRAME::SavePcbCopy(), PCB_EDIT_FRAME::SavePcbFile(), SCH_EDIT_FRAME::saveSchematicFile(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), PCB_EDIT_FRAME::SaveSelectionToDesignBlock(), SCH_EDIT_FRAME::SaveSelectionToDesignBlock(), PCB_EDIT_FRAME::saveSelectionToDesignBlock(), SCH_EDIT_FRAME::SaveSheetAsDesignBlock(), SCH_EDIT_FRAME::SaveSheetToDesignBlock(), BOARD::SaveToHistory(), SCHEMATIC::SaveToHistory(), SchGetLibSymbol(), PCB_BASE_FRAME::setFPWatcher(), BOARD_EDITOR_CONTROL::ShowEeschema(), PANEL_SYMBOL_CHOOSER::showFootprintFor(), KICAD_MANAGER_CONTROL::ShowPlayer(), SCH_EDITOR_CONTROL::SimProbe(), LTSPICE_SCHEMATIC::StructureBuilder(), DIALOG_EDIT_SYMBOLS_LIBID::TransferDataFromWindow(), SCH_SCREEN::UpdateSymbolLinks(), WriteDRCReport(), NETLIST_EXPORTER_KICAD::WriteNetlist(), and SYMBOL_LIB_TABLE_RESCUER::WriteRescueLibrary().
      
  | 
  virtualinherited | 
where did the Problem() occur?
Definition at line 40 of file exceptions.cpp.
References where.
Referenced by PCB_EDIT_FRAME::FetchNetlistFromSchematic(), and What().
      
  | 
  inherited | 
at which byte offset within the line, 1 based index
Definition at line 122 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), init(), PANEL_SETUP_RULES::OnCompile(), and PARSE_ERROR().
      
  | 
  inherited | 
problem line of input [say, from a LINE_READER].
this is brought up in original byte format rather than wxString form, in case there was a problem with the encoding, in which case converting to wxString is not reliable in this context.
Definition at line 128 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), init(), and PROJECT_SCH::LegacySchLibs().
      
  | 
  inherited | 
at which line number, 1 based index.
Definition at line 121 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), init(), PANEL_SETUP_RULES::OnCompile(), and PARSE_ERROR().
      
  | 
  protectedinherited | 
Definition at line 161 of file ki_exception.h.
Referenced by init(), and ParseProblem().
      
  | 
  protectedinherited | 
Definition at line 107 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR(), FUTURE_FORMAT_ERROR::init(), init(), PARSE_ERROR::init(), and Problem().
| wxString FUTURE_FORMAT_ERROR::requiredGenerator | 
Version of KiCad required to open file.
Definition at line 178 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR(), and init().
| wxString FUTURE_FORMAT_ERROR::requiredVersion | 
Date of KiCad file format required to open file.
Definition at line 177 of file ki_exception.h.
Referenced by FUTURE_FORMAT_ERROR(), and init().
      
  | 
  protectedinherited | 
Definition at line 108 of file ki_exception.h.
Referenced by init(), PARSE_ERROR::init(), and Where().