18 lines
No EOL
439 B
PHP
18 lines
No EOL
439 B
PHP
<?php
|
|
|
|
namespace TamerLib\Exceptions;
|
|
|
|
use Exception;
|
|
use Throwable;
|
|
|
|
class ServerException extends Exception
|
|
{
|
|
/**
|
|
* @param string $message
|
|
* @param Throwable|null $previous
|
|
*/
|
|
public function __construct(string $message = "", ?Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, ($previous ? $previous->getCode() : 0), $previous);
|
|
}
|
|
} |