Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/src/exceptions.ts>UnsupportedMediaTypeException

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class UnsupportedMediaTypeException
extends HttpException
import { UnsupportedMediaTypeException } from "https://deno.land/x/deno_nest@v3.5.2/src/exceptions.ts";

Instantiate an UnsupportedMediaTypeException Exception.

Examples

throw new UnsupportedMediaTypeException()

Constructors

new
UnsupportedMediaTypeException(
objectOrError: any,
description?,
cause?: unknown,
)