Class ErrorModel
This class represents an error message within the ErrorResponseModel class.
Inheritance
System.Object
ErrorModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Vasont.Publisher.Models.Common
Assembly: Vasont.Publisher.Models.dll
Syntax
public class ErrorModel
Constructors
| Improve this Doc View SourceErrorModel()
Initializes a new instance of the ErrorModel class.
Declaration
public ErrorModel()
ErrorModel(String, ErrorType, DateTime, String, String)
Initializes a new instance of the ErrorModel class.
Declaration
public ErrorModel(string message, ErrorType type, DateTime eventDate, string stackTrace, string propertyName = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Contains the error message text. |
Vasont.Inspire.Core.Errors.ErrorType | type | Contains the error message type. |
System.DateTime | eventDate | Contains the date time when the error was created. |
System.String | stackTrace | Contains an error stack trace message. |
System.String | propertyName | Contains the property name for validation errors. |
Properties
| Improve this Doc View SourceErrorType
Gets or sets the error message type.
Declaration
public ErrorType ErrorType { get; set; }
Property Value
Type | Description |
---|---|
Vasont.Inspire.Core.Errors.ErrorType |
EventDate
Gets or sets the date time when the error was generated.
Declaration
public DateTime EventDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Message
Gets or sets the error message text.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyName
Gets or sets a related property name.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StackTrace
Gets or sets the error stack trace generated if any.
Declaration
public string StackTrace { get; set; }
Property Value
Type | Description |
---|---|
System.String |