<?php
throw new Exception('Exception message', 0, new Error('Error message'));
?>