Class ModelValidationException
Represents an error that is raised a Model
Inheritance
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class ModelValidationException : Exception, _Exception, ISerializable
Constructors
ModelValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the ModelValidationException class
Declaration
protected ModelValidationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System. |
context | The StreamingContext that contains contextual information about the source or destination. |
ModelValidationException(String)
Initializes a new instance of the ModelValidationException class
Declaration
public ModelValidationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | A message that describes the error. |
ModelValidationException(String, ModelElement)
Initializes a new instance of the ModelValidationException class
Declaration
public ModelValidationException(string message, ModelElement modelElement)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | A message that describes the error. |
Model |
modelElement | The model element that is responsible for an error. |
ModelValidationException(String, ModelElement, Exception)
Initializes a new instance of the ModelValidationException class
Declaration
public ModelValidationException(string message, ModelElement modelElement, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | A message that describes the error. |
Model |
modelElement | The model element that is responsible for an error. |
System. |
innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Properties
ModelElement
Gets the Model
Declaration
public ModelElement ModelElement { get; }
Property Value
Type | Description |
---|---|
Model |
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. |
info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System. |
context | The StreamingContext that contains contextual information about the source or destination. |