#include <Exception.h>
Public Member Functions | |
std::string getFile () const | |
std::string getFunction () const | |
int getLine () const | |
std::string getMessage () const | |
virtual PyObject * getPyExceptionType () const | |
returns the corresponding python exception type More... | |
virtual PyObject * getPyObject (void) | |
returns a Python dictionary containing the exception data More... | |
bool getReported () const | |
bool getTranslatable () const | |
virtual Base::Type getTypeId (void) const | |
Exception & operator= (const Exception &inst) | |
virtual void ReportException (void) const | |
Reports exception. It includes a mechanism to only report an exception once. More... | |
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... | |
virtual void setPyObject (PyObject *pydict) | |
returns sets the exception data from a Python dictionary More... | |
void setReported (bool reported) | |
void setTranslatable (bool translatable) | |
virtual const char * what (void) const throw () | |
virtual ~Exception () throw () | |
![]() | |
BaseClass () | |
Construction. More... | |
bool isDerivedFrom (const Type type) const | |
virtual ~BaseClass () | |
Destruction. More... | |
Static Public Member Functions | |
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) | |
Protected Member Functions | |
Exception (const char *sMessage) | |
Exception (const Exception &inst) | |
Exception (const std::string &sMessage) | |
Exception (void) | |
Additional Inherited Members | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
Constructor & Destructor Documentation
◆ ~Exception()
|
virtual |
◆ Exception() [1/4]
|
protected |
◆ Exception() [2/4]
|
protected |
◆ Exception() [3/4]
|
protected |
◆ Exception() [4/4]
|
protected |
Member Function Documentation
◆ create()
|
static |
Referenced by draftguitools.gui_labels.Label::action().
◆ getClassTypeId()
|
static |
Referenced by App::FeatureTestException::FeatureTestException().
◆ getFile()
std::string Exception::getFile | ( | ) | const |
◆ getFunction()
std::string Exception::getFunction | ( | ) | const |
Referenced by getPyObject().
◆ getLine()
int Exception::getLine | ( | ) | const |
Referenced by getPyObject().
◆ getMessage()
std::string Exception::getMessage | ( | ) | const |
Referenced by getPyObject().
◆ getPyExceptionType()
|
virtual |
returns the corresponding python exception type
Reimplemented in Base::PyException, Base::UnitsMismatchError, Base::UnderflowError, Base::OverflowError, Base::UnicodeError, Base::ReferencesError, Base::DivisionByZeroError, Base::NotImplementedError, Base::RuntimeError, Base::AttributeError, Base::ImportError, Base::NameError, Base::IndexError, Base::ValueError, Base::TypeError, and Base::FileException.
References Base::BaseExceptionFreeCADError.
Referenced by setPyException().
◆ getPyObject()
|
virtual |
returns a Python dictionary containing the exception data
Reimplemented from Base::BaseClass.
Reimplemented in Base::FileException.
References getFile(), getFunction(), getLine(), getMessage(), getTranslatable(), and what().
Referenced by Base::FileException::getPyObject().
◆ getReported()
bool Base::Exception::getReported | ( | ) | const |
◆ getTranslatable()
bool Exception::getTranslatable | ( | ) | const |
Referenced by getPyObject().
◆ getTypeId()
|
virtual |
Reimplemented from Base::BaseClass.
Reimplemented in Base::AbortException.
◆ init()
|
static |
Referenced by App::Application::initTypes(), and DocumentObject.DocumentObject::onChanged().
◆ operator=()
Referenced by Base::FileException::operator=().
◆ ReportException()
|
virtual |
Reports exception. It includes a mechanism to only report an exception once.
Reimplemented in Base::FileException, and Base::PyException.
Referenced by PartDesignGui::TaskRevolutionParameters::fillAxisCombo(), PartDesignGui::TaskRevolutionParameters::TaskRevolutionParameters(), and PartDesignGui::TaskRevolutionParameters::~TaskRevolutionParameters().
◆ setDebugInformation()
void Exception::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
◆ setMessage() [1/2]
void Exception::setMessage | ( | const char * | sMessage | ) |
Referenced by Base::InterpreterSingleton::runInteractiveString().
◆ setMessage() [2/2]
void Exception::setMessage | ( | const std::string & | sMessage | ) |
◆ setPyException()
|
virtual |
Sets the Python error indicator and an error message.
Reimplemented in Base::PyException.
References Base::BaseExceptionFreeCADError, getPyExceptionType(), and what().
◆ setPyObject()
|
virtual |
returns sets the exception data from a Python dictionary
Reimplemented from Base::BaseClass.
Reimplemented in Base::FileException.
Referenced by Base::PyException::PyException(), and Base::FileException::setPyObject().
◆ setReported()
void Base::Exception::setReported | ( | bool | reported | ) |
◆ setTranslatable()
void Exception::setTranslatable | ( | bool | translatable | ) |
◆ what()
|
virtual |
Reimplemented in Base::FileException, Base::XMLAttributeError, Base::XMLParseException, and Base::AbortException.
Referenced by PartGui::DlgRevolution::accept(), PartGui::DlgExtrusion::apply(), App::Origin::execute(), App::OriginGroupExtension::extensionExecute(), PartDesignGui::TaskTransformedParameters::fillAxisCombo(), PartDesignGui::TaskTransformedParameters::fillPlanesCombo(), getPyObject(), Gui::ViewProviderOrigin::onChanged(), Base::PyException::ReportException(), Gui::ViewProviderPy::setCustomAttributes(), App::DocumentObjectPy::setCustomAttributes(), Base::PyException::setPyException(), setPyException(), Gui::ViewProviderOrigin::setTemporaryVisibility(), Attacher::AttachEnginePy::suggestModes(), PartDesignGui::TaskBoxPrimitives::TaskBoxPrimitives(), PartDesignGui::ViewProviderBody::updateOriginDatumSize(), Gui::ViewProviderOriginGroupExtension::updateOriginSize(), PartGui::DlgExtrusion::validate(), PartGui::DlgRevolution::validate(), Base::AbortException::what(), Base::XMLParseException::what(), Base::XMLAttributeError::what(), PartDesignGui::TaskBoxPrimitives::~TaskBoxPrimitives(), PartDesignGui::TaskLinearPatternParameters::~TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::~TaskMirroredParameters(), and PartDesignGui::TaskPolarPatternParameters::~TaskPolarPatternParameters().
The documentation for this class was generated from the following files:
- src/Base/Exception.h
- src/Base/Exception.cpp