Represents a fault that can have an associated HTTP status code.
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.dll)
Initializes a new instance of the HttpStatusCode.class with the specified
Gets the value of the SOAP action for the fault message.(Inherited from FaultException.)
Gets the fault code for the SOAP fault.(Inherited from FaultException.)
Gets a collection of key/value pairs that provide additional user-defined information about the exception.(Inherited from Exception.)
Gets or sets a link to the help file associated with this exception.(Inherited from Exception.)
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(Inherited from Exception.)
Gets the message for the exception.(Inherited from FaultException.)
Gets or sets the name of the application or the object that causes the error.(Inherited from Exception.)
Gets a string representation of the immediate frames on the call stack.(Inherited from Exception.)
Gets the HttpStatusCode associated with the fault.
Gets the method that throws the current exception.(Inherited from Exception.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
An implementation of the GetObjectData method that is called when an object is serialized to a stream. (Overrides FaultException.GetObjectData(SerializationInfo, StreamingContext).)
Gets the runtime type of the current instance.(Inherited from Exception.)
Creates and returns a string representation of the current exception.(Inherited from Exception.)
When using a WCF REST endpoint (WebHttpBinding and WebHttpBehavior or WebScriptEnablingBehavior) the HTTP status code on the response is set accordingly. However, can be used with non-REST endpoints and behaves like a regular FaultException.
When using a WCF REST endpoint, the response format of the serialized fault is determined in the same way as a non-fault response. For more information about WCF REST formatting, see WCF Web HTTP Formatting.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.