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
TExceptionThe 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
errorCodestringThe error code.
errorMessagestringThe error message.
exceptionTExceptionThe exception thrown.
Properties
ErrorCode
Gets the error code.
public string ErrorCode { get; }
Property Value
ErrorMessage
Gets the error message.
public string ErrorMessage { get; }
Property Value
Exception
Gets the exception thrown.
public TException Exception { get; }
Property Value
- TException