Table of Contents

Class ModelValidationException

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents an error that is raised a ModelElement does not validate ok.

public class ModelValidationException : Exception, _Exception, ISerializable
Inheritance
Object
Exception
ModelValidationException
Implements
_Exception
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()

Constructors

ModelValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ModelValidationException class

protected ModelValidationException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

ModelValidationException(String)

Initializes a new instance of the ModelValidationException class

public ModelValidationException(string message)

Parameters

message String

A message that describes the error.

ModelValidationException(String, ModelElement)

Initializes a new instance of the ModelValidationException class

public ModelValidationException(string message, ModelElement modelElement)

Parameters

message String

A message that describes the error.

modelElement ModelElement

The model element that is responsible for an error.

ModelValidationException(String, ModelElement, Exception)

Initializes a new instance of the ModelValidationException class

public ModelValidationException(string message, ModelElement modelElement, Exception innerException)

Parameters

message String

A message that describes the error.

modelElement ModelElement

The model element that is responsible for an error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

ModelElement

Gets the ModelElement that is responsible for an error.

public ModelElement ModelElement { get; }

Property Value

ModelElement

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.