Skip to content

Commit

Permalink
chore: Remove the exception classes from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Jan 25, 2025
1 parent d71687c commit fc984ed
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Exceptions/CompatibilityException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* another.
*
* @package Core
*
* @codeCoverageIgnore
*/
final class CompatibilityException extends SproutException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/MisconfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* expected, but not provided.
*
* @package Core
*
* @codeCoverageIgnore
*/
final class MisconfigurationException extends SproutException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/NoTenantFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* tenancy, and was required/necessary.
*
* @package Core
*
* @codeCoverageIgnore
*/
final class NoTenantFoundException extends SproutException
{
Expand Down
11 changes: 9 additions & 2 deletions src/Exceptions/ServiceOverrideException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

namespace Sprout\Exceptions;

/**
* Service Override Exceptions
*
* These are all the exceptions specific to the service override functionality.
*
* @codeCoverageIgnore
*/
final class ServiceOverrideException extends SproutException
{
/**
Expand All @@ -14,7 +21,7 @@ final class ServiceOverrideException extends SproutException
*/
public static function notBootable(string $service): self
{
return new self('The service override [' . $service . '] is not bootable'); // @codeCoverageIgnore
return new self('The service override [' . $service . '] is not bootable');
}

/**
Expand All @@ -28,6 +35,6 @@ public static function notBootable(string $service): self
*/
public static function setupButNotEnabled(string $service, string $tenancy): self
{
return new self('The service override [' . $service . '] has been set up for the tenancy [' . $tenancy . '] but it is not enabled for that tenancy'); // @codeCoverageIgnore
return new self('The service override [' . $service . '] has been set up for the tenancy [' . $tenancy . '] but it is not enabled for that tenancy');
}
}
2 changes: 2 additions & 0 deletions src/Exceptions/SproutException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* to Sprout.
*
* @package Core
*
* @codeCoverageIgnore
*/
abstract class SproutException extends \Exception
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/TenantMismatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* the current one.
*
* @package Core
*
* @codeCoverageIgnore
*/
final class TenantMismatchException extends SproutException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/TenantMissingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* is expected/required.
*
* @package Core
*
* @codeCoverageIgnore
*/
final class TenantMissingException extends SproutException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/TenantRelationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* relations.
*
* @package Database\Eloquent
*
* @codeCoverageIgnore
*/
final class TenantRelationException extends SproutException
{
Expand Down

0 comments on commit fc984ed

Please sign in to comment.