Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user