You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Application/UI/Form.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ public function signalReceived(string $signal): void
135
135
}
136
136
} else {
137
137
$class = get_class($this);
138
-
thrownewBadSignalException("Missing handler for signal '$signal' in $class.");
138
+
thrownewNette\Application\RejectRequestException("Missing handler for signal '$signal' in $class.", Nette\Application\RejectRequestException::WRONG_SIGNAL);
thrownewBadSignalException("The signal receiver component '$this->signalReceiver' is not ISignalReceiver implementor.");
314
+
thrownewRejectRequestException("The signal receiver component '$this->signalReceiver' is not ISignalReceiver implementor.", RejectRequestException::WRONG_SIGNAL);
314
315
}
315
316
316
317
$component->signalReceived($this->signal);
@@ -1140,7 +1141,7 @@ protected function saveGlobalState(): void
1140
1141
1141
1142
/**
1142
1143
* Initializes $this->globalParams, $this->signal & $this->signalReceiver, $this->action, $this->view. Called by run().
1143
-
* @throws Nette\Application\BadRequestException if action name is not valid
1144
+
* @throws RejectRequestException if action name is not valid
1144
1145
*/
1145
1146
privatefunctioninitGlobalParameters(): void
1146
1147
{
@@ -1171,7 +1172,7 @@ private function initGlobalParameters(): void
0 commit comments