19 lines
No EOL
491 B
PHP
19 lines
No EOL
491 B
PHP
<?php
|
|
|
|
namespace FederationLib\Exceptions\Standard;
|
|
|
|
use Exception;
|
|
use FederationLib\Enums\Standard\ErrorCodes;
|
|
use Throwable;
|
|
|
|
class BadRequestException extends Exception
|
|
{
|
|
/**
|
|
* @param string $message
|
|
* @param Throwable|null $previous
|
|
*/
|
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, ErrorCodes::BAD_REQUEST, $previous);
|
|
}
|
|
} |