tamerlib/src/TamerLib/Exceptions/ServerException.php

18 lines
439 B
PHP
Raw Normal View History

<?php
2023-02-05 17:27:32 -05:00
namespace TamerLib\Exceptions;
use Exception;
use Throwable;
class ServerException extends Exception
{
2023-06-16 00:53:26 -04:00
/**
* @param string $message
* @param Throwable|null $previous
*/
public function __construct(string $message = "", ?Throwable $previous = null)
{
2023-06-16 00:53:26 -04:00
parent::__construct($message, ($previous ? $previous->getCode() : 0), $previous);
}
}