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-1Lines changed: 1 addition & 1 deletion
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.");
316
+
thrownewRejectRequestException("The signal receiver component '$this->signalReceiver' is not ISignalReceiver implementor.", RejectRequestException::WRONG_SIGNAL);
316
317
}
317
318
318
319
$component->signalReceived($this->signal);
@@ -1149,7 +1150,7 @@ protected function saveGlobalState(): void
1149
1150
1150
1151
/**
1151
1152
* Initializes $this->globalParams, $this->signal & $this->signalReceiver, $this->action, $this->view. Called by run().
1152
-
* @throws Nette\Application\BadRequestException if action name is not valid
1153
+
* @throws RejectRequestException if action name is not valid
1153
1154
*/
1154
1155
privatefunctioninitGlobalParameters(): void
1155
1156
{
@@ -1180,7 +1181,7 @@ private function initGlobalParameters(): void
0 commit comments