Base: Add PropertyError exception

This commit is contained in:
marioalexis
2024-08-01 13:01:19 -03:00
parent e4b2bf7630
commit 776158addd
6 changed files with 45 additions and 1 deletions

View File

@@ -612,6 +612,23 @@ PyObject* AttributeError::getPyExceptionType() const
// ---------------------------------------------------------
PropertyError::PropertyError() = default;
PropertyError::PropertyError(const char* sMessage)
: AttributeError(sMessage)
{}
PropertyError::PropertyError(const std::string& sMessage)
: AttributeError(sMessage)
{}
PyObject* PropertyError::getPyExceptionType() const
{
return PyExc_FC_PropertyError;
}
// ---------------------------------------------------------
RuntimeError::RuntimeError() = default;
RuntimeError::RuntimeError(const char* sMessage)