1 | <?php |
||
12 | final class AssertionException extends Exception |
||
13 | { |
||
14 | /** |
||
15 | * Trim the supplied exception's stack trace to only include relevant |
||
16 | * information. |
||
17 | * |
||
18 | * Also replaces the file path and line number. |
||
19 | * |
||
20 | * @param Exception $exception The exception. |
||
21 | */ |
||
22 | public static function trim(Exception $exception) |
||
51 | |||
52 | /** |
||
53 | * Find the Leo entry point call in a stack trace. |
||
54 | * |
||
55 | * @param array $trace The stack trace. |
||
56 | * |
||
57 | * @return array|null The call, or null if unable to determine the entry point. |
||
58 | */ |
||
59 | public static function traceLeoCall(array $trace) |
||
77 | |||
78 | /** |
||
79 | * Construct a new assertion exception. |
||
80 | * |
||
81 | * @param string $message The message. |
||
82 | */ |
||
83 | public function __construct($message) |
||
89 | } |
||
90 |