ansys::dpf::DpfError Class Reference
Last update: 10.07.2023
ansys::dpf::DpfError Class Reference
#include <dpf_api_base.h>
Public Types | |
enum | ErrorNature { eUnknown , eOk , eComponentLoading , eFileNotFound , eRuntimeError , eWrongOutputType , eFailure , eUnexpectedVoidReturn , eUnexpectedVoidEntity , eUnimplemented , eUserInterrupted , eLicensingFailure } |
Public Member Functions | |
DpfError (ErrorNature nature, std::string const &origin, std::string const &message) | |
virtual const char * | what () const noexcept |
const char * | message () const noexcept |
const char * | origin () const noexcept |
ErrorNature | nature () const noexcept |
bool | isOk () const noexcept |
void | clear () noexcept |
Detailed Description
Error from DPF call.
- See also
- DpfException
- Examples
- DataApis.cpp, Example.cpp, MeshQueryTest.cpp, ModelTest.cpp, and ResultTest.cpp.
Member Enumeration Documentation
◆ ErrorNature
Type of error
Enumerator | |
---|---|
eUnknown | Unknown error. |
eOk | No error. |
eComponentLoading | Error loading component. |
eFileNotFound | File not found error. |
eRuntimeError | Any type of runtime error. |
eWrongOutputType | Wrong output type. |
eFailure | Functionality cannot be completed. |
eUnexpectedVoidReturn | Return value expected. |
eUnexpectedVoidEntity | Return value expected. |
eUnimplemented | Functionality not implemented. |
eUserInterrupted | Execution interupted by user. |
eLicensingFailure | Licensing checks failed. |
Constructor & Destructor Documentation
◆ DpfError()
ansys::dpf::DpfError::DpfError | ( | ErrorNature | nature, |
std::string const & | origin, | ||
std::string const & | message | ||
) |
Create DPF error.
- Parameters
-
[in] nature Type of error. [in] origin Originator of error. [in] message Error message.
Member Function Documentation
◆ clear()
|
noexcept |
Reset to empty state.
◆ isOk()
|
noexcept |
- Returns
- Indication of error.
- Examples
- ResultTest.cpp.
◆ message()
|
noexcept |
- Returns
- User supplied error message.
◆ nature()
|
noexcept |
- Returns
- Type of error.
◆ origin()
|
noexcept |
- Returns
- Originator of error.
◆ what()
|
virtualnoexcept |
- Returns
- Full error message.