public function __construct(\Exception $exception)
{
parent::__construct($exception);
$this->fileName = $exception->getFile();
$this->line = $exception->getLine();
$this->trace = $exception->getTraceAsString();
}