Class ExceptionResponse<TException>
Defines a response to a an exception being thrown.
Inheritance
System.Object
ExceptionResponse<TException>
Namespace: MADE.Web.Exceptions
Assembly: MADE.Web.dll
Syntax
public class ExceptionResponse<TException> : object where TException : Exception
Type Parameters
Name | Description |
---|---|
TException | The type of exception thrown. |
Constructors
| Improve this Doc View SourceExceptionResponse(String, String, TException)
Initializes a new instance of the ExceptionResponse<TException> class with an error code and message.
Declaration
public ExceptionResponse(string errorCode, string errorMessage, TException exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorCode | The error code. |
System.String | errorMessage | The error message. |
TException | exception | The exception thrown. |
Properties
| Improve this Doc View SourceErrorCode
Gets the error code.
Declaration
public string ErrorCode { get; }
Property Value
Type | Description |
---|---|
System.String |
ErrorMessage
Gets the error message.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
Exception
Gets the exception thrown.
Declaration
public TException Exception { get; }
Property Value
Type | Description |
---|---|
TException |