• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

h4kuna / ares / 20451232047

05 Dec 2025 08:01AM UTC coverage: 84.821% (-4.7%) from 89.497%
20451232047

push

github

h4kuna
Update ARES API 1.3.0

17 of 18 new or added lines in 1 file covered. (94.44%)

21 existing lines in 5 files now uncovered.

380 of 448 relevant lines covered (84.82%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exception/ServerResponseException.php
1
<?php declare(strict_types=1);
2

3
namespace h4kuna\Ares\Exception;
4

5
use Throwable;
6

7
final class ServerResponseException extends RuntimeException
8
{
9

10
        /**
11
         * @param string $message
12
         */
13
        public function __construct(
14
                $message = 'The service is probably overloaded. Repeat request after a few minutes.',
15
                int $code = 0,
16
                ?Throwable $previous = null,
17
        ) {
UNCOV
18
                $this->code = $code;
×
UNCOV
19
                parent::__construct($message, $previous);
×
20
        }
21

22
        public static function brokenXml(): self
23
        {
24
                return self::badResponse('Broken response xml response.');
×
25
        }
26

27
        public static function badResponse(string $statusText, int $statusCode = 0): self
28
        {
29
                return new self($statusText, $statusCode);
×
30
        }
31

32
        public static function fromException(Throwable $exception): self
33
        {
34
                return new self($exception->getMessage(), $exception->getCode(), $exception);
×
35
        }
36

37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc