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

RonasIT / laravel-entity-generator / 17549554486

08 Sep 2025 11:40AM UTC coverage: 99.898% (-0.1%) from 100.0%
17549554486

push

github

web-flow
Merge pull request #180 from RonasIT/178-resource-exists-exception

[178]: add ResourceAlreadyExists exception

0 of 1 new or added line in 1 file covered. (0.0%)

982 of 983 relevant lines covered (99.9%)

7.3 hits per line

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

0.0
/src/Exceptions/ResourceAlreadyExistsException.php
1
<?php
2

3
namespace RonasIT\Support\Exceptions;
4

5
use Exception;
6
use RonasIT\Support\Enums\ResourceTypeEnum;
7

8
class ResourceAlreadyExistsException extends Exception
9
{
10
    public function __construct(
11
        protected string $entityName,
12
        protected ResourceTypeEnum $resourceType,
13
        protected ?string $entityNamespace = null,
14
    ) {
NEW
15
        parent::__construct("Cannot create {$entityNamespace}{$resourceType->value} cause it already exists. Remove {$entityName}{$resourceType->value} and run command again.");
×
16
    }
17
}
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