Skip to main content

DPF Cpp Client Library 2026 R1

Class ansys::dpf::DpfException

Last update: 25.03.2026

Exception thrown by DPF call.

Inherits from:

  • std::exception

Members

Public functions

Function DpfException

ansys::dpf::DpfException::DpfException(DpfError::ErrorNature nature, std::string const &origin, std::string const &message)

Create exception to throw.

Parameters:

  • DpfError::ErrorNature nature: [in] Type of error.
  • std::string const & origin: [in] Originator of error.
  • std::string const & message: [in] Error message.

Return type:

Function DpfException

ansys::dpf::DpfException::DpfException(DpfError const &error)

Create exception to throw.

Parameters:

Return type:

Function ~DpfException

virtual ansys::dpf::DpfException::~DpfException()

Return type:

Function what

virtual const char * ansys::dpf::DpfException::what() const noexcept

Returns:

Full error message.

Return type: const char *

Function message

const char * ansys::dpf::DpfException::message() const noexcept

Returns:

User supplied error message.

Return type: const char *

Function origin

const char * ansys::dpf::DpfException::origin() const noexcept

Returns:

Originator of error.

Return type: const char *

Function nature

DpfError::ErrorNature ansys::dpf::DpfException::nature() const noexcept

Returns:

Type of error.

Return type: DpfError::ErrorNature

Function error

DpfError ansys::dpf::DpfException::error() const noexcept

Returns:

Generated DpfError.

Return type: DpfError

Connect with Ansys