Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of Psy Shell.
5
 *
6
 * (c) 2012-2022 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 \Throwable|null $previous (default: null)
27
     */
28
    public function __construct(string $message = '', int $code = 0, \Throwable $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(): string
40
    {
41
        return $this->rawMessage;
42
    }
43
}