KiCad PCB EDA Suite
numEval::FUTURE_FORMAT_ERROR Struct Reference

Struct FUTURE_FORMAT_ERROR 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...

Inheritance diagram for numEval::FUTURE_FORMAT_ERROR:
numEval::PARSE_ERROR numEval::IO_ERROR

Public Member Functions

 FUTURE_FORMAT_ERROR (const PARSE_ERROR &aParseError, const wxString &aRequiredVersion)
 
 ~FUTURE_FORMAT_ERROR () throw ()
 
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)
 
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

wxString requiredVersion
 version or date of KiCad required to open file More...
 
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 Attributes

wxString problem
 
wxString where
 

Detailed Description

Struct FUTURE_FORMAT_ERROR 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.

Can be used to generate more informative error messages.

Definition at line 173 of file numeric_evaluator.cpp.

Constructor & Destructor Documentation

numEval::FUTURE_FORMAT_ERROR::FUTURE_FORMAT_ERROR ( const PARSE_ERROR aParseError,
const wxString &  aRequiredVersion 
)
numEval::FUTURE_FORMAT_ERROR::~FUTURE_FORMAT_ERROR ( )
throw (
)
inline

Definition at line 178 of file numeric_evaluator.cpp.

179 {

Member Function Documentation

void numEval::IO_ERROR::init ( const wxString &  aProblem,
const char *  aThrowersFile,
const char *  aThrowersFunction,
int  aThrowersLineNumber 
)
inherited
void numEval::PARSE_ERROR::init ( const wxString &  aProblem,
const char *  aThrowersFile,
const char *  aThrowersFunction,
int  aThrowersLineNumber,
const wxString &  aSource,
const char *  aInputLine,
int  aLineNumber,
int  aByteIndex 
)
inherited
virtual const wxString numEval::IO_ERROR::Problem ( ) const
virtualinherited

what was the problem?

virtual const wxString numEval::IO_ERROR::What ( ) const
virtualinherited

A composite of Problem() and Where()

virtual const wxString numEval::IO_ERROR::Where ( ) const
virtualinherited

where did the Problem() occur?

Member Data Documentation

int numEval::PARSE_ERROR::byteIndex
inherited

at which byte offset within the line, 1 based index

Definition at line 127 of file numeric_evaluator.cpp.

std::string numEval::PARSE_ERROR::inputLine
inherited

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 133 of file numeric_evaluator.cpp.

int numEval::PARSE_ERROR::lineNumber
inherited

at which line number, 1 based index.

Definition at line 126 of file numeric_evaluator.cpp.

wxString numEval::IO_ERROR::problem
protectedinherited

Definition at line 112 of file numeric_evaluator.cpp.

wxString numEval::FUTURE_FORMAT_ERROR::requiredVersion

version or date of KiCad required to open file

Definition at line 175 of file numeric_evaluator.cpp.

wxString numEval::IO_ERROR::where
protectedinherited

Definition at line 113 of file numeric_evaluator.cpp.


The documentation for this struct was generated from the following file: