Initial commit

This commit is contained in:
2021-03-08 20:44:02 +01:00
commit f5a781d416
19 changed files with 646 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace APnutI\Exceptions;
use APnutI\Exceptions\PnutException;
class HttpPnutException extends PnutException
{
}

View 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;
}
}

View File

@ -0,0 +1,9 @@
<?php
namespace APnutI\Exceptions;
use APnutI\Exceptions\PnutException;
class NotAuthorizedException extends Exception
{
}

View File

@ -0,0 +1,9 @@
<?php
namespace APnutI\Exceptions;
use APnutI\Exceptions\PnutException;
class NotFoundException extends HttpPnutException
{
}

View File

@ -0,0 +1,7 @@
<?php
namespace APnutI\Exceptions;
class PnutException extends Exception
{
}