Show / Hide Table of Contents

Class SoHttpResponseException

An exception that allows for a given HttpResponseMessage to be returned to the client. This type is used for program-flow to be able to respond with certain http status codes. See OnlineTelemetryProcessor where we make sure this type is never sent to Application Insights.

Inheritance
object
Exception
SoHttpResponseException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoHttpResponseException : Exception, ISerializable

Constructors

SoHttpResponseException(HttpResponseMessage)

Initializes a new instance of the HttpResponseException class.

Declaration
public SoHttpResponseException(HttpResponseMessage response)
Parameters
Type Name Description
HttpResponseMessage response

The response message.

SoHttpResponseException(HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

Declaration
public SoHttpResponseException(HttpStatusCode statusCode)
Parameters
Type Name Description
HttpStatusCode statusCode

The status code of the response.

Properties

Response

Gets the HttpResponseMessage to return to the client.

Declaration
public HttpResponseMessage Response { get; }
Property Value
Type Description
HttpResponseMessage

Implements

ISerializable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ExceptionHelper.DeepMessageStack(Exception, string)
ExceptionHelper.Enumerate(Exception)
ExceptionHelper.FindExceptionOfType<T>(Exception)
ExceptionHelper.GetExceptionInfo(Exception)
ExceptionHelper.GetInnermostException(Exception)
ExceptionHelper.SimpleMessageStack(Exception, string)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top