Table of Contents

Class NotAcceptableException

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

The exception that is thrown when the web server, after performing server-driven content negotiation, does not find any content that conforms to the criteria given by the user agent.

public class NotAcceptableException : HttpStatusCodeException, ISerializable
Inheritance
Object
Exception
NotAcceptableException
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

NotAcceptableException()

Initializes a new instance of the NotAcceptableException class.

public NotAcceptableException()

NotAcceptableException(Exception)

Initializes a new instance of the NotAcceptableException class.

public NotAcceptableException(Exception innerException)

Parameters

innerException Exception

The exception that is the cause of the current exception.

NotAcceptableException(String, Exception)

Initializes a new instance of the MethodNotAllowedException class.

public NotAcceptableException(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