KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ki_exception.h File Reference
#include <kicommon.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

class  KI_PARAM_ERROR
 Hold a translatable error message and may be used when throwing exceptions containing a translated error message. More...
 
class  IO_ERROR
 Hold an error message and may be used when throwing exceptions containing meaningful error messages. More...
 
struct  PARSE_ERROR
 A filename or source description, a problem input line, a line number, a byte offset, and an error message which contains the caller's report and his call site information: CPP source file, function, and line number. More...
 
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...
 

Macros

#define THROW_IO_ERROR(msg)   throw IO_ERROR( msg, __FILE__, __FUNCTION__, __LINE__ )
 
#define THROW_PARSE_ERROR(aProblem, aSource, aInputLine, aLineNumber, aByteIndex)
 

Macro Definition Documentation

◆ THROW_IO_ERROR

#define THROW_IO_ERROR (   msg)    throw IO_ERROR( msg, __FILE__, __FUNCTION__, __LINE__ )

macro which captures the "call site" values of FILE_, __FUNCTION & LINE

Definition at line 39 of file ki_exception.h.

◆ THROW_PARSE_ERROR

#define THROW_PARSE_ERROR (   aProblem,
  aSource,
  aInputLine,
  aLineNumber,
  aByteIndex 
)
Value:
throw PARSE_ERROR( aProblem, __FILE__, __FUNCTION__, __LINE__, aSource, aInputLine, \
aLineNumber, aByteIndex )
A filename or source description, a problem input line, a line number, a byte offset,...
Definition: ki_exception.h:120

Definition at line 165 of file ki_exception.h.