for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: famoser
* Date: 07.11.2016
* Time: 11:12
*/
namespace Famoser\XKCDCache\Exceptions;
use Exception;
use Famoser\XKCDCache\Types\ServerError;
* a server exception occurs, if a critical action on the server fails (like saving to the database)
* but the user has no way of changing anything of that behaviour. The user should not receive an unhelpful
* error message, but rather a 'sorry, but we can't continue' kind of behaviour
* @package Famoser\XKCDCache\Exceptions
class ServerException extends Exception
{
* ServerException constructor.
* @param int $serverError
public function __construct(int $serverError)
parent::__construct(ServerError::toString($serverError), $serverError, null);
}