try catch sample
try { } catch (Exception $exception) { echo 'Error (File: ' . $exception->getFile() . ':' . $exception->getLine() . '): ' . $exception->getMessage(); }