Table of Contents

Class UnsupportedMediaTypeException

Namespace
Cuemon.AspNetCore.Http
Assembly
Cuemon.AspNetCore.dll

The exception that is thrown when the media format of the requested data is not supported by the server, so the server is rejecting the request.

public class UnsupportedMediaTypeException : HttpStatusCodeException, ISerializable
Inheritance
Object
Exception
UnsupportedMediaTypeException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

UnsupportedMediaTypeException()

Initializes a new instance of the UnsupportedMediaTypeException class.

public UnsupportedMediaTypeException()

UnsupportedMediaTypeException(Exception)

Initializes a new instance of the UnsupportedMediaTypeException class.

public UnsupportedMediaTypeException(Exception innerException)

Parameters

innerException Exception

The exception that is the cause of the current exception.

UnsupportedMediaTypeException(String, Exception)

Initializes a new instance of the UnsupportedMediaTypeException class.

public UnsupportedMediaTypeException(string message, Exception innerException = null)

Parameters

message String

The message that describes the HTTP status code.

innerException Exception

The exception that is the cause of the current exception.

See Also