mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 23:20:28 +01:00
20 lines
475 B
PHP
20 lines
475 B
PHP
|
<?php
|
||
|
|
||
|
namespace Xentral\Modules\Api\Exception;
|
||
|
|
||
|
use Throwable;
|
||
|
use Xentral\Modules\Api\Http\Exception\HttpException;
|
||
|
use Xentral\Modules\Api\Error\ApiError;
|
||
|
|
||
|
class BadRequestException extends HttpException
|
||
|
{
|
||
|
public function __construct(
|
||
|
$message = 'Bad request',
|
||
|
$code = ApiError::CODE_BAD_REQUEST,
|
||
|
Throwable $previous = null,
|
||
|
array $errors = array()
|
||
|
) {
|
||
|
parent::__construct(400, $message, $code, $previous, $errors);
|
||
|
}
|
||
|
}
|