Show / Hide Table of Contents

Class NodeMismatchException

Exception thrown when nodes aren't matched.

Inheritance
object
Exception
SpiceSharpException
NodeMismatchException
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
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class NodeMismatchException : SpiceSharpException, ISerializable

Constructors

NodeMismatchException()

Initializes a new instance of the NodeMismatchException class.

Declaration
public NodeMismatchException()

NodeMismatchException(int, int)

Initializes a new instance of the NodeMismatchException class.

Declaration
public NodeMismatchException(int expected, int actual)
Parameters
Type Name Description
int expected

The expected number of nodes.

int actual

The actual number of nodes.

NodeMismatchException(SerializationInfo, StreamingContext)

Initializes a new instance of the SpiceSharpException class.

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

The serialization info.

StreamingContext context

The streaming context.

NodeMismatchException(string)

Initializes a new instance of the NodeMismatchException class.

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

The message that describes the error.

NodeMismatchException(string, Exception)

Initializes a new instance of the NodeMismatchException class.

Declaration
public NodeMismatchException(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.

NodeMismatchException(string, int, int)

Initializes a new instance of the NodeMismatchException class.

Declaration
public NodeMismatchException(string name, int expected, int actual)
Parameters
Type Name Description
string name

The name.

int expected

The expected.

int actual

The actual.

Properties

Actual

Gets the actual number of nodes.

Declaration
public virtual int Actual { get; }
Property Value
Type Description
int

The actual number of nodes.

Expected

Gets the expected number of nodes.

Declaration
public virtual int Expected { get; }
Property Value
Type Description
int

The expected number of nodes.

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