Table of Contents

UnsupportedMediaTypeException Constructor

Definition

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.