21.08
|
#include <Error.h>
Public Member Functions | |
Status () | |
Default Constructor. More... | |
Status (ErrorCode error_status, std::string error_description=" ") | |
Default Constructor. More... | |
Status (const Status &)=default | |
Allow instances of this class to be copy constructed. More... | |
Status (Status &&)=default | |
Allow instances of this class to be move constructed. More... | |
Status & | operator= (const Status &)=default |
Allow instances of this class to be copy assigned. More... | |
Status & | operator= (Status &&)=default |
Allow instances of this class to be move assigned. More... | |
operator bool () const noexcept | |
Explicit bool conversion operator. More... | |
ErrorCode | error_code () const |
Gets error code. More... | |
std::string | error_description () const |
Gets error description if any. More... | |
void | throw_if_error () const |
Throws a runtime exception in case it contains a valid error status. More... | |
|
inline |
Default Constructor.
Default Constructor.
error_status | Error status. |
error_description | (Optional) Error description if error_status is not valid. |
Definition at line 65 of file Error.h.
|
inline |
|
inline |
Gets error description if any.
Definition at line 97 of file Error.h.
Referenced by arm_compute::throw_error(), and arm_compute::graph::detail::validate_all_nodes().
|
inlineexplicitnoexcept |
Explicit bool conversion operator.
Definition at line 81 of file Error.h.
References arm_compute::OK.
|
inline |
Throws a runtime exception in case it contains a valid error status.
Definition at line 102 of file Error.h.
References arm_compute::create_error(), arm_compute::create_error_msg(), and arm_compute::throw_error().