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
@@ -136,7 +136,7 @@ public function signalReceived(string $signal): void
136
136
}
137
137
} else {
138
138
$class = get_class($this);
139
-
thrownewBadSignalException("Missing handler for signal '$signal' in $class.");
139
+
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.");
320
+
thrownewRejectRequestException("The signal receiver component '$this->signalReceiver' is not ISignalReceiver implementor.", RejectRequestException::WRONG_SIGNAL);
320
321
}
321
322
322
323
$component->signalReceived($this->signal);
@@ -1161,7 +1162,7 @@ protected function saveGlobalState(): void
1161
1162
1162
1163
/**
1163
1164
* Initializes $this->globalParams, $this->signal & $this->signalReceiver, $this->action, $this->view. Called by run().
1164
-
* @throws Nette\Application\BadRequestException if action name is not valid
1165
+
* @throws RejectRequestException if action name is not valid
1165
1166
*/
1166
1167
privatefunctioninitGlobalParameters(): void
1167
1168
{
@@ -1192,7 +1193,7 @@ private function initGlobalParameters(): void
0 commit comments