An exception thrown when result::value is accessed without a contained value.
More...
#include <result.hpp>
|
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type> |
| bad_result_access (E2 &&error) |
| Constructs this exception using the underlying error type for the error type. More...
|
|
| bad_result_access (const bad_result_access &other)=default |
|
| bad_result_access (bad_result_access &&other)=default |
|
auto | operator= (const bad_result_access &other) -> bad_result_access &=default |
|
auto | operator= (bad_result_access &&other) -> bad_result_access &=default |
|
|
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type> |
| bad_result_access (const char *what_arg, E2 &&error) |
| Constructs this exception using the underlying error type for the error and a message. More...
|
|
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type> |
| bad_result_access (const std::string &what_arg, E2 &&error) |
| Constructs this exception using the underlying error type for the error and a message. More...
|
|
|
auto | error () &noexcept -> E & |
| Gets the underlying error. More...
|
|
auto | error () &&noexcept -> E && |
| Gets the underlying error. More...
|
|
auto | error () const &noexcept -> const E & |
| Gets the underlying error. More...
|
|
auto | error () const &&noexcept -> const E && |
| Gets the underlying error. More...
|
|
template<typename E>
class cpp::bitwizeshift::bad_result_access< E >
An exception thrown when result::value is accessed without a contained value.
Definition at line 312 of file result.hpp.
◆ bad_result_access() [1/3]
template<typename E >
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type>
Constructs this exception using the underlying error type for the error type.
- Parameters
-
error | the underlying error |
◆ bad_result_access() [2/3]
template<typename E >
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type>
Constructs this exception using the underlying error type for the error and a message.
- Parameters
-
what_arg | the message for the failure |
error | the underlying error |
◆ bad_result_access() [3/3]
template<typename E >
template<typename E2 , typename = typename std::enable_if<std::is_constructible<E,E2>::value>::type>
Constructs this exception using the underlying error type for the error and a message.
- Parameters
-
what_arg | the message for the failure |
error | the underlying error |
◆ error() [1/4]
Gets the underlying error.
- Returns
- the error
◆ error() [2/4]
Gets the underlying error.
- Returns
- the error
◆ error() [3/4]
Gets the underlying error.
- Returns
- the error
◆ error() [4/4]
Gets the underlying error.
- Returns
- the error
The documentation for this class was generated from the following file: