summaryrefslogtreecommitdiffstats
path: root/src/InvalidResponseException.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/InvalidResponseException.php')
-rw-r--r--src/InvalidResponseException.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/InvalidResponseException.php b/src/InvalidResponseException.php
new file mode 100644
index 0000000..ee77984
--- /dev/null
+++ b/src/InvalidResponseException.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Cepis;
+
+/**
+ * A success status came back with a body that cannot be parsed.
+ *
+ * In practice this means something between you and the API is answering
+ * instead of it — a captive Wi-Fi portal, a corporate proxy, an HTML error
+ * page. Useful as a diagnosis: the problem is not in your code.
+ */
+final class InvalidResponseException extends \RuntimeException implements CepisException
+{
+}