]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/client/http/class_HttpClient.php
Continued:
[core.git] / framework / main / classes / client / http / class_HttpClient.php
index aa0c6d7b8742025913bc13e25fe8c6b301d60590..fc955edab11c7442ec9c251b3c689288d78b8267 100644 (file)
@@ -119,7 +119,7 @@ class HttpClient extends BaseClient implements Client {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HTTP-CLIENT: responseArray()=%d', count($responseArray)));
                if (count($responseArray) < 2) {
                        // Not expected count
-                       throw new UnexpectedValueException(sprintf('responseArray()=%d must have at least two elements', count($responseArray)));
+                       throw new UnexpectedValueException(sprintf('responseArray()=%d must have at least two elements', count($responseArray)), FrameworkInterface::EXCEPTION_UNEXPECTED_VALUE);
                }
 
                // Analyze first header line