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
-
ObjectExceptionModelValidationException
- Implements
-
_ExceptionISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.MessageException.DataException.InnerExceptionException.TargetSiteException.StackTraceException.HelpLinkException.SourceException.HResultException.SerializeObjectStateObject.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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe 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
messageStringA message that describes the error.
ModelValidationException(String, ModelElement)
Initializes a new instance of the ModelValidationException class
public ModelValidationException(string message, ModelElement modelElement)
Parameters
messageStringA message that describes the error.
modelElementModelElementThe 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
messageStringA message that describes the error.
modelElementModelElementThe model element that is responsible for an error.
innerExceptionExceptionThe 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
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.