Show / Hide Table of Contents

Class ValidationFailedException

An exception thrown when a simulation fails its validation.

Inheritance
object
Exception
SpiceSharpException
ValidationFailedException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
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: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class ValidationFailedException : SpiceSharpException, ISerializable

Constructors

ValidationFailedException()

Initializes a new instance of the ValidationFailedException class.

Declaration
public ValidationFailedException()

ValidationFailedException(ISimulation, IRules)

Initializes a new instance of the ValidationFailedException class.

Declaration
public ValidationFailedException(ISimulation simulation, IRules rules)
Parameters
Type Name Description
ISimulation simulation

The simulation.

IRules rules

The rule provider.

ValidationFailedException(ISimulation, IRules, Exception)

Initializes a new instance of the ValidationFailedException class.

Declaration
public ValidationFailedException(ISimulation simulation, IRules rules, Exception innerException)
Parameters
Type Name Description
ISimulation simulation

The simulation.

IRules rules

The rule provider.

Exception innerException

The inner exception.

ValidationFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationFailedException class.

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

The serialization info.

StreamingContext context

The streaming context.

ValidationFailedException(string)

Initializes a new instance of the ValidationFailedException class.

Declaration
public ValidationFailedException(string message)
Parameters
Type Name Description
string message

The message that describes the error.

ValidationFailedException(string, Exception)

Initializes a new instance of the ValidationFailedException class.

Declaration
public ValidationFailedException(string message, Exception innerException)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

Rules

Gets the rules.

Declaration
public virtual IRules Rules { get; }
Property Value
Type Description
IRules

The rules.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The serialization info

StreamingContext context

The streaming context

Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Implements

ISerializable

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

SpiceSharpException
In this article
Back to top Generated by DocFX