Skip to content

Commit 485ca11

Browse files
committed
Introduce ExceptionInterface
1 parent 5b3203d commit 485ca11

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace TypistTech\WordfenceApi\Exceptions;
6+
7+
interface ExceptionInterface {}

src/Exceptions/HttpException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use RuntimeException;
99
use TypistTech\WordfenceApi\Feed;
1010

11-
class HttpException extends RuntimeException
11+
class HttpException extends RuntimeException implements ExceptionInterface
1212
{
1313
public static function fromResponse(Feed $feed, TransferException $original): self
1414
{

src/Exceptions/InvalidJsonException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use RuntimeException;
88
use TypistTech\WordfenceApi\Feed;
99

10-
class InvalidJsonException extends RuntimeException
10+
class InvalidJsonException extends RuntimeException implements ExceptionInterface
1111
{
1212
public static function forFeedResponse(Feed $feed): self
1313
{

0 commit comments

Comments
 (0)