comparison vendor/psy/psysh/src/Psy/Exception/RuntimeException.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 /*
4 * This file is part of Psy Shell.
5 *
6 * (c) 2012-2017 Justin Hileman
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Psy\Exception;
13
14 /**
15 * A RuntimeException for Psy.
16 */
17 class RuntimeException extends \RuntimeException implements Exception
18 {
19 private $rawMessage;
20
21 /**
22 * Make this bad boy.
23 *
24 * @param string $message (default: "")
25 * @param int $code (default: 0)
26 * @param \Exception $previous (default: null)
27 */
28 public function __construct($message = '', $code = 0, \Exception $previous = null)
29 {
30 $this->rawMessage = $message;
31 parent::__construct($message, $code, $previous);
32 }
33
34 /**
35 * Return a raw (unformatted) version of the error message.
36 *
37 * @return string
38 */
39 public function getRawMessage()
40 {
41 return $this->rawMessage;
42 }
43 }