Table of Contents

Class ExceptionResponse<TException>

Namespace
MADE.Web.Exceptions
Assembly
MADE.Web.dll

Defines a response to a an exception being thrown.

public class ExceptionResponse<TException> where TException : Exception

Type Parameters

TException

The type of exception thrown.

Inheritance
ExceptionResponse<TException>
Inherited Members
Extension Methods

Constructors

ExceptionResponse(string, string, TException)

Initializes a new instance of the ExceptionResponse<TException> class with an error code and message.

public ExceptionResponse(string errorCode, string errorMessage, TException exception)

Parameters

errorCode string

The error code.

errorMessage string

The error message.

exception TException

The exception thrown.

Properties

ErrorCode

Gets the error code.

public string ErrorCode { get; }

Property Value

string

ErrorMessage

Gets the error message.

public string ErrorMessage { get; }

Property Value

string

Exception

Gets the exception thrown.

public TException Exception { get; }

Property Value

TException