<?php 
$ex 
= new \Exception("Big Problem", 123);

echo 
"An Exception has happened: \r\n",
    
$ex->getMessage(), "\r\n",
    
"code: ", $ex->getCode(), "\r\n",
    
"line: ", $ex->getLine(), "\r\n",
    
"file: ", $ex->getFile(), "\r\n",
    
"trace: ", $ex->getTraceAsString();
1