Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 200
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
/*
3
/*
4
 * This file is part of Psy Shell.
4
 * This file is part of Psy Shell.
5
 *
5
 *
6
 * (c) 2012-2022 Justin Hileman
6
 * (c) 2012-2023 Justin Hileman
7
 *
7
 *
8
 * For the full copyright and license information, please view the LICENSE
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
9
 * file that was distributed with this source code.
Zeile 25... Zeile 25...
25
        parent::__construct($message, $throwable->getCode(), $throwable);
25
        parent::__construct($message, $throwable->getCode(), $throwable);
26
    }
26
    }
Zeile 27... Zeile 27...
27
 
27
 
28
    /**
28
    /**
29
     * Return a raw (unformatted) version of the error message.
-
 
30
     *
-
 
31
     * @return string
29
     * Return a raw (unformatted) version of the error message.
32
     */
30
     */
33
    public function getRawMessage(): string
31
    public function getRawMessage(): string
34
    {
32
    {
35
        return $this->getPrevious()->getMessage();
33
        return $this->getPrevious()->getMessage();
Zeile 39... Zeile 37...
39
     * Create a ThrowUpException from a Throwable.
37
     * Create a ThrowUpException from a Throwable.
40
     *
38
     *
41
     * @deprecated psySH no longer wraps Throwables
39
     * @deprecated psySH no longer wraps Throwables
42
     *
40
     *
43
     * @param \Throwable $throwable
41
     * @param \Throwable $throwable
44
     *
-
 
45
     * @return self
-
 
46
     */
42
     */
47
    public static function fromThrowable($throwable): self
43
    public static function fromThrowable($throwable): self
48
    {
44
    {
49
        if ($throwable instanceof \Error) {
45
        if ($throwable instanceof \Error) {
50
            $throwable = ErrorException::fromError($throwable);
46
            $throwable = ErrorException::fromError($throwable);