summaryrefslogtreecommitdiffstats
path: root/src/InvalidResponseException.php
diff options
context:
space:
mode:
authorMurilo Ijanc <[email protected]>2026-07-26 14:58:55 -0300
committerMurilo Ijanc <[email protected]>2026-07-26 14:58:55 -0300
commit64764fb9fac0227f8e0443e7c7519d73aec275b9 (patch)
treecb4fc56eeb6ecce53854f9c530609cf01ab3349f /src/InvalidResponseException.php
downloadphp-0.1.0.tar.gz
Initial importv0.1.0
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
+{
+}