OpenXE/classes/Modules/Api/Exception/ServerErrorException.php

19 lines
448 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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);
}
}