Skip to content

UnsupportedMediaTypeHttpException


Methods

__construct

public __construct(\Psr\Http\Message\UriInterface|string|null $uri = null, string $message = 'Unsupported Media Type', ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$uri \Psr\Http\Message\UriInterface|string|null
$message string
$previous ?\Throwable

Inherited methods

__construct

public __construct(\Psr\Http\Message\UriInterface|string|null $uri = null, string $message = '', mixed $code = 0, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$uri \Psr\Http\Message\UriInterface|string|null
$message string
$code mixed
$previous ?\Throwable

getUri

Return the uri to redirect to.

public getUri(): \Psr\Http\Message\UriInterface|string|null