Skip to content

Instantly share code, notes, and snippets.

Great project, i really apreciate if could you tell me how detect an exception, because when i execute a report without resul, it sends a message of error, and if i use an instruction try..catch just skip the process for the exception, but i want to send a message when it happens.
try{
JasperPHP::process(
base_path() . '/public/reportes/pendientes.jasper',
base_path() . '/public/reportes/'.Sentry::getUser()->id.'/',
array("pdf"),
array('ruta_img'=>$ruta_img,
'cia_f1'=>$input['cia_f1'], 'cia_t1'=>$input['cia_t1'],
'area_f1'=>$input['area_f1'], 'area_t1'=>$input['area_t1'],
'tpo_pendiente_f1'=>$input['tpo_pendiente_f1'], 'tpo_pendiente_t1'=>$input['tpo_pendiente_t1'],