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
-
ObjectExceptionUnsupportedMediaTypeException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteException.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
ExceptionThe 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
StringThe message that describes the HTTP status code.
innerException
ExceptionThe exception that is the cause of the current exception.