Class InvalidIdentifierException
Represents an error because of a duplicate identifier (e.g. two columns with the same name in a single table)
Inheritance
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class InvalidIdentifierException : Exception, _Exception, ISerializable
Constructors
InvalidIdentifierException()
Initializes a new instance of the InvalidIdentifierException class.
Declaration
public InvalidIdentifierException()
InvalidIdentifierException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidIdentifierException class.
Declaration
protected InvalidIdentifierException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
InvalidIdentifierException(String)
Initializes a new instance of the InvalidIdentifierException class.
Declaration
public InvalidIdentifierException(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | The identifier that caused the exception |
InvalidIdentifierException(String, Exception)
Initializes a new instance of the InvalidIdentifierException class.
Declaration
public InvalidIdentifierException(string identifier, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | The identifier that caused the exception |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
InvalidIdentifierException(String, String)
Initializes a new instance of the InvalidIdentifierException class.
Declaration
public InvalidIdentifierException(string message, string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.String | identifier | The identifier that caused the exception |
InvalidIdentifierException(String, String, Exception)
Initializes a new instance of the InvalidIdentifierException class.
Declaration
public InvalidIdentifierException(string message, string identifier, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.String | identifier | The identifier that caused the exception |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Properties
Identifier
Gets the invalid identifier
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |