aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IRequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IRequest.php')
-rw-r--r--lib/public/IRequest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php
index 2639a234ad5..cbac143d775 100644
--- a/lib/public/IRequest.php
+++ b/lib/public/IRequest.php
@@ -305,4 +305,14 @@ interface IRequest {
* @since 8.1.0
*/
public function getServerHost(): string;
+
+ /**
+ * If decoding the request content failed, throw an exception.
+ * Currently only \JsonException for json decoding errors,
+ * but in the future may throw other exceptions for other decoding issues.
+ *
+ * @throws \Exception
+ * @since 32.0.0
+ */
+ public function throwDecodingExceptionIfAny(): void;
}