Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
UnhandledRejectionException.php
01 <?php
02
03 namespace React\Promise;
04
05 class UnhandledRejectionException extends \RuntimeException
06 {
07 private $reason;
08
09 public static function resolve($reason)
10 {
11 if ($reason instanceof \Exception || $reason instanceof \Throwable) {
12 return $reason;
13 }
14
15 return new static($reason);
16 }
17
18 public function __construct($reason)
19 {
20 $this->reason = $reason;
21
22 $message = sprintf('Unhandled Rejection: %s', json_encode($reason));
23
24 parent::__construct($message, 0);
25 }
26
27 public function getReason()
28 {
29 return $this->reason;
30 }
31 }
32