mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
19 lines
448 B
PHP
19 lines
448 B
PHP
<?php
|
|
|
|
namespace Xentral\Modules\Api\Exception;
|
|
|
|
use Throwable;
|
|
use Xentral\Modules\Api\Http\Exception\HttpException;
|
|
use Xentral\Modules\Api\Error\ApiError;
|
|
|
|
class ServerErrorException extends HttpException
|
|
{
|
|
public function __construct(
|
|
$message = 'Unknown server error',
|
|
$code = ApiError::CODE_UNEXPECTED_ERROR,
|
|
Throwable $previous = null
|
|
) {
|
|
parent::__construct(500, $message, $code, $previous);
|
|
}
|
|
}
|