try {
$this->buildXMLHeader();
} catch (Exception $e) {
return $e->getMessage();
}
use Exception;
use IlluminateDatabaseQueryException;
try {
} catch (Exception $e) {
return $e->getMessage();
} catch (QueryException $e) {
return $e->getMessage();
}
try
{
// what do you want to do?
}
catch (Exception $e)
{
//what do you want to do or say if an error is thrown?
}
use Throwable;
public function report(Throwable $exception);
public function render($request, Throwable $exception);