Initial Version
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
use KTXF\Exception\BaseException;
|
||||
|
||||
class BadRequestException extends BaseException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when request headers conflict with each other.
|
||||
*/
|
||||
class ConflictingHeadersException extends \UnexpectedValueException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when JSON decoding/encoding fails in HTTP context.
|
||||
*/
|
||||
class JsonException extends \UnexpectedValueException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when a session is expected but not available.
|
||||
*/
|
||||
class SessionNotFoundException extends \LogicException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when a suspicious operation is detected (e.g., invalid host).
|
||||
*/
|
||||
class SuspiciousOperationException extends \UnexpectedValueException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
use KTXF\Exception\RuntimeException;
|
||||
|
||||
class UnexpectedValueException extends RuntimeException {}
|
||||
Reference in New Issue
Block a user