public createMediaTypeUnacceptableException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $mediaTypeName ) : Exception | ||
$request | WoohooLabs\Yin\JsonApi\Request\RequestInterface | |
$mediaTypeName | string | |
return | Exception |
public function createMediaTypeUnacceptableException(RequestInterface $request, $mediaTypeName);
/** * @throws \WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable */ public function validateAcceptHeader() { if ($this->isValidMediaTypeHeader("Accept") === false) { throw $this->exceptionFactory->createMediaTypeUnacceptableException($this, $this->getHeaderLine("Accept")); } }