Show / Hide Table of Contents

Class VariableNotFoundException

An exception that is thrown when a problem occurs trying to find a variable.

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

Constructors

VariableNotFoundException()

Initializes a new instance of the VariableNotFoundException class.

Declaration
public VariableNotFoundException()

VariableNotFoundException(Reference, string)

Initializes a new instance of the VariableNotFoundException class.

Declaration
public VariableNotFoundException(Reference path, string message)
Parameters
Type Name Description
Reference path

The hierarchical reference.

string message

The message.

VariableNotFoundException(Reference, string, Exception)

Initializes a new instance of the VariableNotFoundException class.

Declaration
public VariableNotFoundException(Reference path, string message, Exception innerException)
Parameters
Type Name Description
Reference path

The hierarchical reference.

string message

The message.

Exception innerException

The inner exception.

VariableNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the VariableNotFoundException.

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

The serialization info.

StreamingContext context

The streaming context.

VariableNotFoundException(string)

Initializes a new instance of the VariableNotFoundException class.

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

The message that describes the error.

VariableNotFoundException(string, Exception)

Initializes a new instance of the VariableNotFoundException class.

Declaration
public VariableNotFoundException(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

Path

Gets the path that could not be found.

Declaration
public Reference Path { get; }
Property Value
Type Description
Reference

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)
In this article
Back to top Generated by DocFX