OpenCL exceptions are not supported - it is based on the C99 language.
On AMD GPUs, you can use printf inside the kernel - see the cl_amd_printf extension. To use this, put this at the top of your .cl file:
#pragma OPENCL EXTENSION cl_amd_printf : enable
source share