Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class ErrorMessage

    You can use it to create custom error messages that will be used by our framework.

    Inheritance
    object
    ErrorMessage
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Core.Exceptions
    Assembly: Innovt.Core.dll
    Syntax
    public class ErrorMessage

    Constructors

    | Edit this page View Source

    ErrorMessage()

    Initializes a new instance of the ErrorMessage class with default values.

    Declaration
    public ErrorMessage()
    | Edit this page View Source

    ErrorMessage(string)

    Constructor

    Declaration
    public ErrorMessage(string message)
    Parameters
    Type Name Description
    string message

    The message that you want to send.

    | Edit this page View Source

    ErrorMessage(string, string)

    Constructor

    Declaration
    public ErrorMessage(string message, string propertyName)
    Parameters
    Type Name Description
    string message

    The message that you want to send.

    string propertyName

    The property(optional) that this error happened.

    | Edit this page View Source

    ErrorMessage(string, string, string)

    Constructor

    Declaration
    public ErrorMessage(string message, string propertyName, string code)
    Parameters
    Type Name Description
    string message

    The message that you want to send.

    string propertyName

    The property(optional) that this error happened.

    string code

    The code of you error

    Properties

    | Edit this page View Source

    Code

    Gets or sets the error code associated with the error message.

    Declaration
    public string Code { get; protected set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Message

    Gets or sets the error message describing the error.

    Declaration
    public string Message { get; protected set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    PropertyName

    Gets or sets the name of the property to which the error is related.

    Declaration
    public string PropertyName { get; protected set; }
    Property Value
    Type Description
    string

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX