Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
688 lars 1
<?php
2
/**
3
 * Whoops - php errors for cool kids
4
 * @author Filipe Dobreira <http://github.com/filp>
5
 */
6
 
7
namespace Whoops\Inspector;
8
 
9
interface InspectorInterface
10
{
11
    /**
12
     * @return \Throwable
13
     */
14
    public function getException();
15
 
16
    /**
17
     * @return string
18
     */
19
    public function getExceptionName();
20
 
21
    /**
22
     * @return string
23
     */
24
    public function getExceptionMessage();
25
 
26
    /**
27
     * @return string[]
28
     */
29
    public function getPreviousExceptionMessages();
30
 
31
    /**
32
     * @return int[]
33
     */
34
    public function getPreviousExceptionCodes();
35
 
36
    /**
37
     * Returns a url to the php-manual related to the underlying error - when available.
38
     *
39
     * @return string|null
40
     */
41
    public function getExceptionDocrefUrl();
42
 
43
    /**
44
     * Does the wrapped Exception has a previous Exception?
45
     * @return bool
46
     */
47
    public function hasPreviousException();
48
 
49
    /**
50
     * Returns an Inspector for a previous Exception, if any.
51
     * @todo   Clean this up a bit, cache stuff a bit better.
52
     * @return InspectorInterface
53
     */
54
    public function getPreviousExceptionInspector();
55
 
56
    /**
57
     * Returns an array of all previous exceptions for this inspector's exception
58
     * @return \Throwable[]
59
     */
60
    public function getPreviousExceptions();
61
 
62
    /**
63
     * Returns an iterator for the inspected exception's
64
     * frames.
65
     *
66
     * @param array<callable> $frameFilters
67
     *
68
     * @return \Whoops\Exception\FrameCollection
69
     */
70
    public function getFrames(array $frameFilters = []);
71
}