4 * This file is part of Psy Shell.
6 * (c) 2012-2017 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Psy\Exception;
15 * A RuntimeException for Psy.
17 class RuntimeException extends \RuntimeException implements Exception
24 * @param string $message (default: "")
25 * @param int $code (default: 0)
26 * @param \Exception $previous (default: null)
28 public function __construct($message = '', $code = 0, \Exception $previous = null)
30 $this->rawMessage = $message;
31 parent::__construct($message, $code, $previous);
35 * Return a raw (unformatted) version of the error message.
39 public function getRawMessage()
41 return $this->rawMessage;