Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Routing\Exceptions;
4
 
5
use Illuminate\Http\Response;
6
use RuntimeException;
7
use Throwable;
8
 
9
class StreamedResponseException extends RuntimeException
10
{
11
    /**
12
     * The actual exception thrown during the stream.
13
     *
14
     * @var \Throwable
15
     */
16
    public $originalException;
17
 
18
    /**
19
     * Create a new exception instance.
20
     *
21
     * @param  \Throwable  $originalException
22
     * @return void
23
     */
24
    public function __construct(Throwable $originalException)
25
    {
26
        $this->originalException = $originalException;
27
 
28
        parent::__construct($originalException->getMessage());
29
    }
30
 
31
    /**
32
     * Render the exception.
33
     *
34
     * @return \Illuminate\Http\Response
35
     */
36
    public function render()
37
    {
38
        return new Response('');
39
    }
40
 
41
    /**
42
     * Get the actual exception thrown during the stream.
43
     *
44
     * @return \Throwable
45
     */
46
    public function getInnerException()
47
    {
48
        return $this->originalException;
49
    }
50
}