Exception#
Fully qualified name: cupva::Exception
Defined in src/host/shared/include/install/cupva_host_common.hpp
- 
class Exception : public std::exception#
 Exception is used for error-handling.
Public Functions
- Exception(
 - Error const errorCode,
 - char_t const *const errorMsg,
 Constructs new exception object.
Usage considerations
Allowed context for the API call
Thread-safe: No
API group
Init: No
Runtime: Yes
De-Init: No
- Parameters:
 errorCode – code indicating error condition
errorMsg – string containing error detailed message
- 
~Exception() noexcept override#
 Destroy Exception object.
Usage considerations
Allowed context for the API call
Thread-safe: No
API group
Init: No
Runtime: Yes
De-Init: No
- 
Error getErrorCode() const noexcept#
 Get the Error Type.
Usage considerations
Allowed context for the API call
Thread-safe: Yes
API group
Init: No
Runtime: Yes
De-Init: No
- Returns:
 PvaError The error type.
- 
char_t const *what() const noexcept override#
 Get Error Message
Public Static Attributes
- 
static constexpr uint32_t MAX_ERROR_MSG_LENGTH = {768U}#
 Maximum length of the error message