Initial Version
This commit is contained in:
11
core/lib/Http/Exception/BadRequestException.php
Normal file
11
core/lib/Http/Exception/BadRequestException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace KTXC\Http\Exception;
|
||||
|
||||
use KTXF\Exception\BaseException;
|
||||
|
||||
class BadRequestException extends BaseException
|
||||
{
|
||||
}
|
||||
12
core/lib/Http/Exception/ConflictingHeadersException.php
Normal file
12
core/lib/Http/Exception/ConflictingHeadersException.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
12
core/lib/Http/Exception/JsonException.php
Normal file
12
core/lib/Http/Exception/JsonException.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
12
core/lib/Http/Exception/SessionNotFoundException.php
Normal file
12
core/lib/Http/Exception/SessionNotFoundException.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
12
core/lib/Http/Exception/SuspiciousOperationException.php
Normal file
12
core/lib/Http/Exception/SuspiciousOperationException.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
9
core/lib/Http/Exception/UnexpectedValueException.php
Normal file
9
core/lib/Http/Exception/UnexpectedValueException.php
Normal file
@@ -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