errorcode418/php
0
1<?php2/**3 * ua-parser4 *5 * Copyright (c) 2011-2012 Dave Olsen, http://dmolsen.com6 *7 * Released under the MIT license8 */9namespace UAParser\Exception;10 11class FetcherException extends DomainException12{13 public static function httpError($resource, $error)14 {15 return new static(16 sprintf('Could not fetch HTTP resource "%s": %s', $resource, $error)17 );18 }19}20 