KiCad PCB EDA Suite
numEval::IO_ERROR Class Reference

Struct IO_ERROR is a class used to hold an error message and may be used when throwing exceptions containing meaningful error messages. More...

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

Public Member Functions

 IO_ERROR (const wxString &aProblem, const char *aThrowersFile, const char *aThrowersFunction, int aThrowersLineNumber)
 Constructor. More...
 
 IO_ERROR ()
 
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...
 
virtual ~IO_ERROR () throw ()
 

Protected Attributes

wxString problem
 
wxString where
 

Detailed Description

Struct IO_ERROR is a class used to hold an error message and may be used when throwing exceptions containing meaningful error messages.

Author
Dick Hollenbeck

Definition at line 77 of file numeric_evaluator.cpp.

Constructor & Destructor Documentation

numEval::IO_ERROR::IO_ERROR ( const wxString &  aProblem,
const char *  aThrowersFile,
const char *  aThrowersFunction,
int  aThrowersLineNumber 
)
inline

Constructor.

Parameters
aProblemis Problem() text.
aThrowersFileis the FILE preprocessor macro but generated at the source file of thrower.
aThrowersFunctionis the function name at the throw site.
aThrowersLineNumberis the source code line number of the throw.

Use macro THROW_IO_ERROR() to wrap a call to this constructor at the call site.

Definition at line 93 of file numeric_evaluator.cpp.

97 {
numEval::IO_ERROR::IO_ERROR ( )
inline

Definition at line 99 of file numeric_evaluator.cpp.

virtual numEval::IO_ERROR::~IO_ERROR ( )
throw (
)
inlinevirtual

Definition at line 109 of file numeric_evaluator.cpp.

Member Function Documentation

void numEval::IO_ERROR::init ( const wxString &  aProblem,
const char *  aThrowersFile,
const char *  aThrowersFunction,
int  aThrowersLineNumber 
)
virtual const wxString numEval::IO_ERROR::Problem ( ) const
virtual

what was the problem?

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

A composite of Problem() and Where()

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

where did the Problem() occur?

Member Data Documentation

wxString numEval::IO_ERROR::problem
protected

Definition at line 112 of file numeric_evaluator.cpp.

wxString numEval::IO_ERROR::where
protected

Definition at line 113 of file numeric_evaluator.cpp.


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