Skip to content

Commit

Permalink
Adding a common exception interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Einenlum committed Jan 16, 2020
1 parent 86f9972 commit ca75073
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Exception/DomainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

namespace League\ISO3166\Exception;

final class DomainException extends \DomainException
final class DomainException extends \DomainException implements ISO3166Exception
{
}
7 changes: 7 additions & 0 deletions src/Exception/ISO3166Exception.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace League\ISO3166\Exception;

interface ISO3166Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

namespace League\ISO3166\Exception;

final class InvalidArgumentException extends \InvalidArgumentException
final class InvalidArgumentException extends \InvalidArgumentException implements ISO3166Exception
{
}
2 changes: 1 addition & 1 deletion src/Exception/OutOfBoundsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

namespace League\ISO3166\Exception;

final class OutOfBoundsException extends \OutOfBoundsException
final class OutOfBoundsException extends \OutOfBoundsException implements ISO3166Exception
{
}

0 comments on commit ca75073

Please sign in to comment.