File exception handling class This class is specialized to go with exception thrown in case of File IO Problems. More...
#include <Exception.h>
Public Member Functions | |
FileException () | |
standard construction More... | |
FileException (const char *sMessage, const char *sFileName=0) | |
With massage and file name. More... | |
FileException (const char *sMessage, const FileInfo &File) | |
With massage and file name. More... | |
FileException (const FileException &inst) | |
Construction. More... | |
std::string getFileName () const | |
Get file name for use with translatable message. More... | |
virtual PyObject * getPyExceptionType () const override | |
returns the corresponding python exception type More... | |
virtual PyObject * getPyObject (void) override | |
returns a Python dictionary containing the exception data More... | |
FileException & operator= (const FileException &inst) | |
Assignment operator. More... | |
virtual void ReportException (void) const override | |
Report generation. More... | |
virtual void setPyObject (PyObject *pydict) override | |
returns sets the exception data from a Python dictionary More... | |
virtual const char * what () const override throw () | |
Description of the exception. More... | |
virtual ~FileException () throw () | |
Destruction. More... | |
![]() | |
std::string getFile () const | |
std::string getFunction () const | |
int getLine () const | |
std::string getMessage () const | |
bool getReported () const | |
bool getTranslatable () const | |
virtual Base::Type getTypeId (void) const | |
Exception & operator= (const Exception &inst) | |
void setDebugInformation (const std::string &file, const int line, const std::string &function) | |
setter methods for including debug information intended to use via macro for autofilling of debugging information More... | |
void setMessage (const char *sMessage) | |
void setMessage (const std::string &sMessage) | |
virtual void setPyException () const | |
Sets the Python error indicator and an error message. More... | |
void setReported (bool reported) | |
void setTranslatable (bool translatable) | |
virtual ~Exception () throw () | |
![]() | |
BaseClass () | |
Construction. More... | |
bool isDerivedFrom (const Type type) const | |
virtual ~BaseClass () | |
Destruction. More... | |
Protected Attributes | |
FileInfo file | |
Additional Inherited Members | |
![]() | |
static void * create (void) | |
static Base::Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
Exception (const char *sMessage) | |
Exception (const Exception &inst) | |
Exception (const std::string &sMessage) | |
Exception (void) | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
Detailed Description
File exception handling class This class is specialized to go with exception thrown in case of File IO Problems.
Constructor & Destructor Documentation
◆ FileException() [1/4]
FileException::FileException | ( | const char * | sMessage, |
const char * | sFileName = 0 |
||
) |
With massage and file name.
◆ FileException() [2/4]
FileException::FileException | ( | const char * | sMessage, |
const FileInfo & | File | ||
) |
With massage and file name.
References Base::FileInfo::fileName().
◆ FileException() [3/4]
FileException::FileException | ( | ) |
standard construction
◆ FileException() [4/4]
FileException::FileException | ( | const FileException & | inst | ) |
Construction.
◆ ~FileException()
|
virtual |
Destruction.
Member Function Documentation
◆ getFileName()
std::string FileException::getFileName | ( | ) | const |
Get file name for use with translatable message.
References file, and Base::FileInfo::fileName().
◆ getPyExceptionType()
|
overridevirtual |
returns the corresponding python exception type
Reimplemented from Base::Exception.
◆ getPyObject()
|
overridevirtual |
returns a Python dictionary containing the exception data
Reimplemented from Base::Exception.
References file, Base::FileInfo::fileName(), and Base::Exception::getPyObject().
◆ operator=()
FileException & FileException::operator= | ( | const FileException & | inst | ) |
Assignment operator.
References file, and Base::Exception::operator=().
◆ ReportException()
|
overridevirtual |
Report generation.
Reimplemented from Base::Exception.
◆ setPyObject()
|
overridevirtual |
returns sets the exception data from a Python dictionary
Reimplemented from Base::Exception.
References file, Base::FileInfo::setFile(), and Base::Exception::setPyObject().
◆ what()
|
overridevirtual |
Description of the exception.
Reimplemented from Base::Exception.
Member Data Documentation
◆ file
|
protected |
Referenced by exportIFCHelper.ContextCreator::createAutomaticProject(), exportIFCHelper.ContextCreator::createCustomProject(), exportIFCHelper.ContextCreator::createGeometricRepresentationContext(), exportIFCHelper.ContextCreator::createGeometricRepresentationSubContext(), exportIFCHelper.ContextCreator::createMapConversion(), exportIFCHelper.ContextCreator::createTargetCRS(), exportIFCHelper.ContextCreator::createTrueNorth(), getFileName(), getPyObject(), operator=(), importIFClegacy.IfcFile::read(), and setPyObject().
The documentation for this class was generated from the following files:
- src/Base/Exception.h
- src/Base/Exception.cpp