for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Http package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Http\Header\Exception;
use Borobudur\Http\Exception\InvalidArgumentException;
/**
* @author Iqbal Maulana <[email protected]>
* @created 7/19/15
class InvalidHeaderValueException extends InvalidArgumentException
{
* Exception that header given with invalid name.
* @param string $fieldName
* @param string $givenFieldName
* @return InvalidHeaderValueException
public static function invalidHeaderName($fieldName, $givenFieldName)
return new self(sprintf('Given header "%s" is not match with "%s".', $givenFieldName, $fieldName));
}
* Exception for invalid header value.
* @param string $value
public static function invalidValue($value)
return new self(sprintf('Value "%s" is not valid for header value.', $value));