diff --git a/src/Exception/CannotUseRateLimiter.php b/src/Exception/CannotUseRateLimiter.php index 5bc5540..f59f3f6 100644 --- a/src/Exception/CannotUseRateLimiter.php +++ b/src/Exception/CannotUseRateLimiter.php @@ -6,6 +6,6 @@ use RuntimeException; -final class CannotUseRateLimiter extends RuntimeException +final class CannotUseRateLimiter extends RuntimeException implements RateLimitException { } diff --git a/src/Exception/LimitExceeded.php b/src/Exception/LimitExceeded.php index e0ecbfe..d576a57 100644 --- a/src/Exception/LimitExceeded.php +++ b/src/Exception/LimitExceeded.php @@ -7,7 +7,7 @@ use RateLimit\Rate; use RuntimeException; -final class LimitExceeded extends RuntimeException +final class LimitExceeded extends RuntimeException implements RateLimitException { /** @var string */ protected $identifier; diff --git a/src/Exception/RateLimitException.php b/src/Exception/RateLimitException.php new file mode 100644 index 0000000..12fc8ac --- /dev/null +++ b/src/Exception/RateLimitException.php @@ -0,0 +1,11 @@ +