Class RestApiException
This class is designed to be thrown by a mediator to influence the response of the controllers when an unexpected event occurs
Inheritance
System.Object
System.Exception
RestApiException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetType()
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AzureFromTheTrenches.Commanding.AspNetCore
Assembly: AzureFromTheTrenches.Commanding.AspNetCore.dll
Syntax
public class RestApiException : Exception, ISerializable
Constructors
| Improve this Doc View SourceRestApiException(HttpStatusCode)
Declaration
public RestApiException(HttpStatusCode statusCode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.HttpStatusCode | statusCode |
RestApiException(HttpStatusCode, Object)
Declaration
public RestApiException(HttpStatusCode statusCode, object payload)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.HttpStatusCode | statusCode | |
| System.Object | payload |
Properties
| Improve this Doc View SourcePayload
Declaration
public object Payload { get; }
Property Value
| Type | Description |
|---|---|
| System.Object |
StatusCode
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| System.Net.HttpStatusCode |
Implements
System.Runtime.Serialization.ISerializable