ansys::dpf::DpfException Class Reference
Last update: 10.07.2023
ansys::dpf::DpfException Class Reference
#include <dpf_api_base.h>
Inherits std::exception.
Public Member Functions | |
DpfException (DpfError::ErrorNature nature, std::string const &origin, std::string const &message) | |
DpfException (DpfError const &error) | |
virtual const char * | what () const noexcept |
const char * | message () const noexcept |
const char * | origin () const noexcept |
DpfError::ErrorNature | nature () const noexcept |
DpfError | error () const noexcept |
Detailed Description
Exception thrown by DPF call.
Constructor & Destructor Documentation
◆ DpfException() [1/2]
ansys::dpf::DpfException::DpfException | ( | DpfError::ErrorNature | nature, |
std::string const & | origin, | ||
std::string const & | message | ||
) |
Create exception to throw.
- Parameters
-
[in] nature Type of error. [in] origin Originator of error. [in] message Error message.
◆ DpfException() [2/2]
ansys::dpf::DpfException::DpfException | ( | DpfError const & | error | ) |
Create exception to throw.
- Parameters
-
[in] error Error.
Member Function Documentation
◆ error()
◆ 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.