Skip to content

Commit e1c8fc5

Browse files
committed
create reuseable exceptions
1 parent b83d4fc commit e1c8fc5

File tree

6 files changed

+60
-0
lines changed

6 files changed

+60
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class ForbiddenException extends Exception
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class InvalidResourceException extends Exception
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class NotAcceptableException extends Exception
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class ServerErrorException extends Exception
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class ServiceUnavailableException extends Exception
8+
{
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Thepeer\Sdk\Exceptions;
4+
5+
use Exception;
6+
7+
class UnauthorizedException extends Exception
8+
{
9+
10+
}

0 commit comments

Comments
 (0)