for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\ShikimoriBrowserBundle\Service\Exception;
class ResponseException extends \RuntimeException
{
* @param string $host
* @param \Exception $previous
* @return ResponseException
public static function failed($host, \Exception $previous)
return new self(sprintf('Failed to query the server "%s"', $host), $previous->getCode(), $previous);
}
public static function invalidResponse($host)
return new self(sprintf('Invalid response from the server "%s"', $host));