|
errors 0.6.3
|
An error that has an exception. More...
#include <errors/impl/exception_error.hpp>


Public Member Functions | |
| exception_error (std::exception_ptr exception, source_location location) | |
| Create an exception error from an exception pointer. | |
| exception_error (source_location location) | |
| Create an exception error from the current exception. | |
| const char * | what () const noexcept override |
| Get the exception message. | |
Public Member Functions inherited from errors::impl::error_without_cause | |
| const error_ptr & | cause () const &noexcept override |
| Get cause of this error, if any. | |
| error_ptr | cause () &&noexcept override |
| Transfer the ownership of cause of this error, if any. | |
| base_error (source_location loc) | |
| Constructor with source_location. | |
Public Member Functions inherited from errors::impl::base_error | |
| base_error (source_location loc) | |
| Constructor with source_location. | |
| std::optional< source_location > | location () const noexcept override |
| Get the source location of this error, if any. | |
Public Member Functions inherited from errors::error | |
Public Member Functions inherited from errors::detail::interface | |
| interface (const interface &)=delete | |
| interface (interface &&)=delete | |
| interface & | operator= (interface &&)=delete |
| interface & | operator= (const interface &)=delete |
Public Attributes | |
| std::exception_ptr | exception_ptr |
| The exception pointer. | |
An error that has an exception.
This class is used to create an error from an exception.
|
inline |
Create an exception error from an exception pointer.
| exception | The exception pointer. |
| location | The source location. |
The exception pointer is stored in the error.
|
inline |
Create an exception error from the current exception.
| location | The source location. |
|
inlineoverridevirtualnoexcept |
Get the exception message.
Implements errors::error.