> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ansys::dpf::DpfException

![][C++]
![][public]

Exception thrown by DPF call.

**Inherits from**:

* std::exception

## Members

* [DpfException](#classansys-dpf-dpfexception-1ab417aeb3168e72745df2f8c98d912428)
* [DpfException](#classansys-dpf-dpfexception-1a692cdeed9babf4395f9ce12c64a35818)
* [error](#classansys-dpf-dpfexception-1a07c601a38ec182b458074da6f0e52478)
* [message](#classansys-dpf-dpfexception-1a69cc4e277ea17f9e7d83872db1edbf24)
* [nature](#classansys-dpf-dpfexception-1ad21aba4144b3dbcb6e619931ac6ae6ed)
* [origin](#classansys-dpf-dpfexception-1a613c503433eb563fed99099941cc416d)
* [what](#classansys-dpf-dpfexception-1a0df1c0ba45617a9f207739f935d0e074)
* [\~DpfException](#classansys-dpf-dpfexception-1a963149e4633f882888c9c539fddc7f11)

## Public functions

### Function DpfException

![][public]

```cpp theme={null}
ansys::dpf::DpfException::DpfException(DpfError::ErrorNature nature, std::string const &origin, std::string const &message)
```

Create exception to throw.

**Parameters**:

* [DpfError::ErrorNature](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md#classansys-dpf-dpferror-1a9a3fe202cc2e46746462fdb1ce44c47f) **nature**: \[in] Type of error.
* std::string const & **origin**: \[in] Originator of error.
* std::string const & **message**: \[in] Error message.

**Return type**:

### Function DpfException

![][public]

```cpp theme={null}
ansys::dpf::DpfException::DpfException(DpfError const &error)
```

Create exception to throw.

**Parameters**:

* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) const & **error**: \[in] Error.

**Return type**:

### Function \~DpfException

![][public]

```cpp theme={null}
virtual ansys::dpf::DpfException::~DpfException()
```

**Return type**:

### Function what

![][public]
![][const]

```cpp theme={null}
virtual const char * ansys::dpf::DpfException::what() const noexcept
```

**Returns**:

Full error message.

**Return type**: const char \*

### Function message

![][public]
![][const]

```cpp theme={null}
const char * ansys::dpf::DpfException::message() const noexcept
```

**Returns**:

User supplied error message.

**Return type**: const char \*

### Function origin

![][public]
![][const]

```cpp theme={null}
const char * ansys::dpf::DpfException::origin() const noexcept
```

**Returns**:

Originator of error.

**Return type**: const char \*

### Function nature

![][public]
![][const]

```cpp theme={null}
DpfError::ErrorNature ansys::dpf::DpfException::nature() const noexcept
```

**Returns**:

Type of error.

**Return type**: [DpfError::ErrorNature](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md#classansys-dpf-dpferror-1a9a3fe202cc2e46746462fdb1ce44c47f)

### Function error

![][public]
![][const]

```cpp theme={null}
DpfError ansys::dpf::DpfException::error() const noexcept
```

**Returns**:

Generated [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md).

**Return type**: [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md)

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
