Add a checkreturn attribute to throw or not an exception when errors