[This is preliminary documentation and is subject to change.]

Thrown when a client offers or requests a Content-Type the system is unable to deal with.

Inheritance Hierarchy

System.ObjectSystem.ObjectSystem::Object
  System.ExceptionSystem.ExceptionSystem::Exception
    System.SystemExceptionSystem.SystemExceptionSystem::SystemException
      System.Runtime.InteropServices.ExternalExceptionSystem.Runtime.InteropServices.ExternalExceptionSystem.Runtime.InteropServices::ExternalException
        System.Web.HttpExceptionSystem.Web.HttpExceptionSystem.Web::HttpException
          Simple.Web.UnsupportedMediaTypeExceptionSimple.Web.UnsupportedMediaTypeExceptionSimple::Web::UnsupportedMediaTypeException

Namespace: Simple.WebSimple.WebSimple::Web
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

[Serializable]

public sealed class UnsupportedMediaTypeExceptionHttpException

VB

<Serializable> _

Public NotInheritable Class UnsupportedMediaTypeException Inherits HttpException

C++

[Serializable]

public ref class UnsupportedMediaTypeException sealedpublic HttpException

The UnsupportedMediaTypeExceptionUnsupportedMediaTypeExceptionUnsupportedMediaTypeException type exposes the following members.

Constructors

Name Description
UnsupportedMediaTypeException(IList<string>)New(IList(Of String))UnsupportedMediaTypeException(IList<String^>^) Initializes a new instance of the UnsupportedMediaTypeExceptionUnsupportedMediaTypeExceptionUnsupportedMediaTypeException class.
UnsupportedMediaTypeException(string)New(String)UnsupportedMediaTypeException(String^) Initializes a new instance of the UnsupportedMediaTypeExceptionUnsupportedMediaTypeExceptionUnsupportedMediaTypeException class.
Top

Properties

Name Description
ContentTypesContentTypesContentTypes Gets the content types.
DataDataData Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from ExceptionExceptionException.)
ErrorCodeErrorCodeErrorCode Gets the HRESULT of the error. (Inherited from ExternalExceptionExternalExceptionExternalException.)
HResultHResultHResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from ExceptionExceptionException.)
HelpLinkHelpLinkHelpLink Gets or sets a link to the help file associated with this exception. (Inherited from ExceptionExceptionException.)
InnerExceptionInnerExceptionInnerException Gets the Exception instance that caused the current exception. (Inherited from ExceptionExceptionException.)
MessageMessageMessage Gets a message that describes the current exception. (Inherited from ExceptionExceptionException.)
SourceSourceSource Gets or sets the name of the application or the object that causes the error. (Inherited from ExceptionExceptionException.)
StackTraceStackTraceStackTrace Gets a string representation of the immediate frames on the call stack. (Inherited from ExceptionExceptionException.)
TargetSiteTargetSiteTargetSite Gets the method that throws the current exception. (Inherited from ExceptionExceptionException.)
WebEventCodeWebEventCodeWebEventCode Gets the event codes that are associated with the HTTP exception. (Inherited from HttpExceptionHttpExceptionHttpException.)
Top

Methods

Name Description
Equals(object)Equals(Object)Equals(Object^) Determines whether the specified Object is equal to the current Object. (Inherited from ObjectObjectObject.)
GetBaseException()GetBaseException()GetBaseException() When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from ExceptionExceptionException.)
GetHashCode()GetHashCode()GetHashCode() Serves as a hash function for a particular type. (Inherited from ObjectObjectObject.)
GetHtmlErrorMessage()GetHtmlErrorMessage()GetHtmlErrorMessage() Gets the HTML error message to return to the client. (Inherited from HttpExceptionHttpExceptionHttpException.)
GetHttpCode()GetHttpCode()GetHttpCode() Gets the HTTP response status code to return to the client. (Inherited from HttpExceptionHttpExceptionHttpException.)
GetObjectData(SerializationInfo, StreamingContext)GetObjectData(SerializationInfo, StreamingContext)GetObjectData(SerializationInfo^, StreamingContext) Gets information about the exception and adds it to the SerializationInfo object. (Overrides HttpException.GetObjectData(SerializationInfo, StreamingContext)HttpException.GetObjectData(SerializationInfo, StreamingContext)HttpException::GetObjectData(SerializationInfo^, StreamingContext).)
GetType()GetType()GetType() Gets the runtime type of the current instance. (Inherited from ExceptionExceptionException.)
ToString()ToString()ToString() Returns a string that contains the HRESULT of the error. (Inherited from ExternalExceptionExternalExceptionExternalException.)
Top

See Also

Simple.WebSimple.WebSimple::Web Namespace