Class DependencyCycleException

Thrown when cycle is detected when resolving dependencies

Inheritance
System.Object
System.Exception
System.SystemException
System.InvalidOperationException
DependencyCycleException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.Framework.Dependencies
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public class DependencyCycleException : InvalidOperationException, ISerializable, _Exception

Constructors

DependencyCycleException()

Initializes a new instance of the DependencyCycleException class.

Declaration
public DependencyCycleException()

DependencyCycleException(IEnumerable<Object>)

Initializes a new instance of the DependencyCycleException class.

Declaration
public DependencyCycleException(IEnumerable<object> circularDependencies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Object> circularDependencies

The circular dependencies.

DependencyCycleException(SerializationInfo, StreamingContext)

Initializes a new instance of the DependencyCycleException class.

Declaration
protected DependencyCycleException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The object that holds the serialized object data.

System.Runtime.Serialization.StreamingContext context

The contextual information about the source or destination.

DependencyCycleException(String)

Initializes a new instance of the DependencyCycleException class.

Declaration
public DependencyCycleException(string message)
Parameters
Type Name Description
System.String message

The message.

DependencyCycleException(String, IEnumerable<Object>)

Initializes a new instance of the DependencyCycleException class.

Declaration
public DependencyCycleException(string message, IEnumerable<object> circularDependencies)
Parameters
Type Name Description
System.String message

The message.

System.Collections.Generic.IEnumerable<System.Object> circularDependencies

The circular dependencies.

DependencyCycleException(String, Exception)

Initializes a new instance of the DependencyCycleException class.

Declaration
public DependencyCycleException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The message.

System.Exception innerException

The inner exception.

Properties

CircularDependencies

Gets dependencies that make a cycle.

Declaration
public IList<object> CircularDependencies { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.Object>

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

System.Runtime.Serialization.StreamingContext context

The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Exceptions
Type Condition
System.ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).

ToString()

Overriden. Returns a System.String that represents this instance and the list of missing prerequisites.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Overrides
System.Exception.ToString()

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods