Class ErrorDefinition
Contains information for an error definition.
Inheritance
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class ErrorDefinition : Object
Constructors
ErrorDefinition(String, String, String, String, String, Byte)
Initialises a new instance of the ErrorDefinition class.
Declaration
public ErrorDefinition(string errorDefinitionName, string group, string currentErrorIdentifier, string loggedErrorIdentifier, string text, byte bit)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorDefinitionName | Name of the error definition. |
System.String | group | The group. |
System.String | currentErrorIdentifier | Identified if the error condition is current or not. |
System.String | loggedErrorIdentifier | The logged error identifier. |
System.String | text | The text of the error definition. |
System.Byte | bit | The base string. |
Properties
Bit
Gets the Bit number used to mask against the parameter value to determine if the parameter value is 'in error'.
Declaration
public byte Bit { get; }
Property Value
Type | Description |
---|---|
System.Byte |
CurrentErrorIdentifier
Gets the current error identifier for the error definition.
Declaration
public string CurrentErrorIdentifier { get; }
Property Value
Type | Description |
---|---|
System.String | The current error identifier. |
ErrorDefinitionName
Gets the name of the error definition.
Declaration
public string ErrorDefinitionName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the error definition. |
Group
Gets the group for the error definition.
Declaration
public string Group { get; }
Property Value
Type | Description |
---|---|
System.String | The parameter group. |
LoggedErrorIdentifier
Gets the logged error identifier.
Declaration
public string LoggedErrorIdentifier { get; }
Property Value
Type | Description |
---|---|
System.String | The logged error identifier. |
Text
Gets the text.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String | The text of the error definition. |
Methods
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |