Initial commit
This commit is contained in:
9
src/Exceptions/HttpPnutException.php
Normal file
9
src/Exceptions/HttpPnutException.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace APnutI\Exceptions;
|
||||
|
||||
use APnutI\Exceptions\PnutException;
|
||||
|
||||
class HttpPnutException extends PnutException
|
||||
{
|
||||
|
||||
}
|
15
src/Exceptions/HttpPnutRedirectException.php
Normal file
15
src/Exceptions/HttpPnutRedirectException.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace APnutI\Exceptions;
|
||||
|
||||
use APnutI\Exceptions\HttpPnutException;
|
||||
|
||||
class HttpPnutRedirectException extends HttpPnutException
|
||||
{
|
||||
public $response;
|
||||
|
||||
public function __construct($response)
|
||||
{
|
||||
parent::__construct("Redirect");
|
||||
$this->response = $response;
|
||||
}
|
||||
}
|
9
src/Exceptions/NotAuthorizedException.php
Normal file
9
src/Exceptions/NotAuthorizedException.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace APnutI\Exceptions;
|
||||
|
||||
use APnutI\Exceptions\PnutException;
|
||||
|
||||
class NotAuthorizedException extends Exception
|
||||
{
|
||||
|
||||
}
|
9
src/Exceptions/NotFoundException.php
Normal file
9
src/Exceptions/NotFoundException.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace APnutI\Exceptions;
|
||||
|
||||
use APnutI\Exceptions\PnutException;
|
||||
|
||||
class NotFoundException extends HttpPnutException
|
||||
{
|
||||
|
||||
}
|
7
src/Exceptions/PnutException.php
Normal file
7
src/Exceptions/PnutException.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
namespace APnutI\Exceptions;
|
||||
|
||||
class PnutException extends Exception
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user