Class ErrorMessage
You can use it to create custom error messages that will be used by our framework.
Inherited Members
Namespace: Innovt.Core.Exceptions
Assembly: Innovt.Core.dll
Syntax
public class ErrorMessage
Constructors
| Edit this page View SourceErrorMessage()
Initializes a new instance of the ErrorMessage class with default values.
Declaration
public ErrorMessage()
ErrorMessage(string)
Constructor
Declaration
public ErrorMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that you want to send. |
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. |
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 SourceCode
Gets or sets the error code associated with the error message.
Declaration
public string Code { get; protected set; }
Property Value
Type | Description |
---|---|
string |
Message
Gets or sets the error message describing the error.
Declaration
public string Message { get; protected set; }
Property Value
Type | Description |
---|---|
string |
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 |