1 | <?php |
||
13 | final class AssertionException extends Exception |
||
14 | { |
||
15 | /** |
||
16 | * Trim the supplied exception's stack trace to only include relevant |
||
17 | * information. |
||
18 | * |
||
19 | * Also replaces the file path and line number. |
||
20 | * |
||
21 | * @param Exception $exception The exception. |
||
22 | */ |
||
23 | public static function trim(Exception $exception) |
||
42 | |||
43 | /** |
||
44 | * Find the Leo entry point call in a stack trace. |
||
45 | * |
||
46 | * @param array $trace The stack trace. |
||
47 | * |
||
48 | * @return array|null The call, or null if unable to determine the entry point. |
||
49 | */ |
||
50 | public static function traceLeoCall(array $trace) |
||
60 | |||
61 | /** |
||
62 | * Construct a new assertion exception. |
||
63 | * |
||
64 | * @param string $message The message. |
||
65 | */ |
||
66 | public function __construct($message) |
||
72 | |||
73 | private static function isLeoTraceEntry($entry) |
||
83 | |||
84 | private static function traceCallPosition($call) |
||
91 | |||
92 | private static function updateExceptionPosition($reflector, $exception, $file, $line) |
||
102 | } |
||
103 |