Show / Hide Table of Contents

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 Source

ErrorModel()

Initializes a new instance of the ErrorModel class.

Declaration
public ErrorModel()
| Improve this Doc View Source

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 Source

ErrorType

Gets or sets the error message type.

Declaration
public ErrorType ErrorType { get; set; }
Property Value
Type Description
Vasont.Inspire.Core.Errors.ErrorType
| Improve this Doc View Source

EventDate

Gets or sets the date time when the error was generated.

Declaration
public DateTime EventDate { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

Message

Gets or sets the error message text.

Declaration
public string Message { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PropertyName

Gets or sets a related property name.

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

StackTrace

Gets or sets the error stack trace generated if any.

Declaration
public string StackTrace { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright (c) GlobalLink Vasont