Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class DependencyCycleException

Thrown when cycle is detected when resolving dependencies

Inheritance
System.Object
DependencyCycleException
Namespace: EPiServer.Framework.Dependencies
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class DependencyCycleException : InvalidOperationException

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.

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.

Extension Methods