<?php/* * This file is part of Psy Shell. * * (c) 2012-2015 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespacePsy\Exception;/** * A throw-up exception, used for throwing an exception out of the Psy Shell. */classThrowUpExceptionextends\ExceptionimplementsException{/** * {@inheritdoc} */publicfunction__construct(\Exception$exception){$message=sprintf("Throwing %s with message '%s'",get_class($exception),$exception->getMessage());parent::__construct($message,$exception->getCode(),$exception);}/** * Return a raw (unformatted) version of the error message. * * @return string */publicfunctiongetRawMessage(){return$this->getPrevious()->getMessage();}}