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