/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/exception.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/exception.hpp Source File#

2 min read time

Applies to Linux

rocCV: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/exception.hpp Source File
exception.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 #include <hip/hip_runtime.h>
24 
25 #include <exception>
26 #include <iostream>
27 
28 #include "status_type.h"
29 
30 namespace roccv {
31 class Exception : public std::exception {
32  protected:
33  std::string errorMessage_;
35 
36  public:
37  Exception(std::string message, eStatusType customStatus);
38  Exception(eStatusType customStatus);
40  const char *what() const throw() override;
41 };
42 
43 namespace ExceptionMessage {
44 const char *getMessageByEnum(eStatusType status);
45 const char *getMessageByEnum(eTestStatusType status);
46 } // namespace ExceptionMessage
47 } // namespace roccv
Definition: exception.hpp:31
std::string errorMessage_
Definition: exception.hpp:33
Exception(std::string message, eStatusType customStatus)
eStatusType getStatusEnum() const
Exception(eStatusType customStatus)
eStatusType customStatus_
Definition: exception.hpp:34
const char * what() const override
const char * getMessageByEnum(eTestStatusType status)
Definition: strided_data_wrap.hpp:33
eTestStatusType
Describes various status types for roccv test Exceptions. It may be worth moving this into the standa...
Definition: status_type.h:55
eStatusType
Describes various status types for roccv Exceptions.
Definition: status_type.h:30