| 772 | // Error handling |
| 773 | |
| 774 | void cv::gpu::error(const char *error_string, const char *file, const int line, const char *func) |
| 775 | { |
| 776 | int code = CV_GpuApiCallError; |
| 777 | |
| 778 | if (uncaught_exception()) |
| 779 | { |
| 780 | const char* errorStr = cvErrorStr(code); |
| 781 | const char* function = func ? func : "unknown function"; |
| 782 | |
| 783 | cerr << "OpenCV Error: " << errorStr << "(" << error_string << ") in " << function << ", file " << file << ", line " << line; |
| 784 | cerr.flush(); |
| 785 | } |
| 786 | else |
| 787 | cv::error( cv::Exception(code, error_string, func, file, line) ); |
| 788 | } |
nothing calls this directly
no test coverage detected