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

ackintosh / ganesha / 13216244139

08 Feb 2025 01:51PM UTC coverage: 92.522% (-0.1%) from 92.647%
13216244139

push

github

web-flow
Merge pull request #121 from marmichalski/rejected-ex-srv

feat: pass service name to RejectedException

4 of 5 new or added lines in 3 files covered. (80.0%)

631 of 682 relevant lines covered (92.52%)

21.52 hits per line

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

75.0
/src/Ganesha/Exception/RejectedException.php
1
<?php
2

3
namespace Ackintosh\Ganesha\Exception;
4

5
class RejectedException extends \RuntimeException
6
{
7
    public function __construct(
8
        string $message = "",
9
        int $code = 0,
10
        ?\Throwable $previous = null,
11
        private ?string $serviceName = null,
12
    ) {
13
        parent::__construct($message, $code, $previous);
4✔
14
    }
2✔
15

16
    public static function withServiceName(string $serviceName): self
17
    {
18
        return new self(sprintf('"%s" is not available', $serviceName), serviceName: $serviceName);
4✔
19
    }
20

21
    public function serviceName(): ?string
22
    {
NEW
23
        return $this->serviceName;
×
24
    }
25
}
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

© 2026 Coveralls, Inc