25 #ifndef OPENCLEXCEPTION_HH_
26 #define OPENCLEXCEPTION_HH_
28 #include <bias_config.h>
29 #include <Base/Common/BIASpragmaStart.hh>
30 #include <OpenCLFramework/clfOpenCL.hh>
35 #define THROW_CL_EXCEPTION(err) \
36 throw clfException(err, __FILE__, __LINE__)
48 class BIASOpenCLFramework_EXPORT
clfException :
public std::exception {
51 clfException(cl::Error clerror, std::string file,
int line)
throw();
56 const std::string& GetFileName()
const throw();
58 int GetLineNumber() const throw();
60 int GetErrorCode() const throw();
62 const std::
string& GetMessageString() const throw();
64 const std::
string& GetReasonString() const throw();
66 const std::
string& GetDetailedString() const throw();
68 virtual const
char* what() const throw();
71 std::
string fileName_;
76 std::
string detailed_;
81 #include <Base/Common/BIASpragmaEnd.hh>
clf Exception wrapper, is thrown in case of most clf errors