Search Results for

    Show / Hide Table of Contents

    Class ConstraintViolatedException

    Exception which is thrown when a constraint is violated. This occurs when an observation does not hold true or a weight is 0.

    Inheritance
    Object
    Exception
    ConstraintViolatedException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Factors
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    [Serializable]
    public class ConstraintViolatedException : Exception, ISerializable

    Constructors

    ConstraintViolatedException()

    Initializes a new instance of the ConstraintViolatedException class.

    Declaration
    public ConstraintViolatedException()

    ConstraintViolatedException(SerializationInfo, StreamingContext)

    Initializes a new instance of the ConstraintViolatedException class.

    Declaration
    protected ConstraintViolatedException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    The object that holds the serialized object data.

    StreamingContext context

    The contextual information about the source or destination.

    ConstraintViolatedException(String)

    Initializes a new instance of the ConstraintViolatedException class with a specified error message.

    Declaration
    public ConstraintViolatedException(string message)
    Parameters
    Type Name Description
    String message

    The error message.

    ConstraintViolatedException(String, Exception)

    Initializes a new instance of the ConstraintViolatedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

    Declaration
    public ConstraintViolatedException(string message, Exception inner)
    Parameters
    Type Name Description
    String message

    The error message that explains the reason for the exception.

    Exception inner

    The exception that is the cause of the current exception.

    Implements

    System.Runtime.Serialization.ISerializable
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.