* Exception class for build errors to carry build info */
| 2592 | * Exception class for build errors to carry build info |
| 2593 | */ |
| 2594 | class BuildError : public Error |
| 2595 | { |
| 2596 | private: |
| 2597 | BuildLogType buildLogs; |
| 2598 | public: |
| 2599 | BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec) |
| 2600 | { |
| 2601 | } |
| 2602 | |
| 2603 | BuildLogType getBuildLog() const |
| 2604 | { |
| 2605 | return buildLogs; |
| 2606 | } |
| 2607 | }; |
| 2608 | namespace detail { |
| 2609 | static inline cl_int buildErrHandler( |
| 2610 | cl_int err, |