SaaS CMS has officially launched! Learn more now.

Class TypeScannerReflectionException

Thrown by type scanner when reflecting a given assembly

Inheritance
System.Object
TypeScannerReflectionException
Namespace: EPiServer.Framework.TypeScanner
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class TypeScannerReflectionException : Exception

Constructors

TypeScannerReflectionException()

Initializes a new instance of the TypeScannerReflectionException class.

Declaration
public TypeScannerReflectionException()

TypeScannerReflectionException(SerializationInfo, StreamingContext)

Initializes a new instance of the TypeScannerReflectionException class.

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

TypeScannerReflectionException(String)

Initializes a new instance of the TypeScannerReflectionException class.

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

TypeScannerReflectionException(String, Exception)

Initializes a new instance of the TypeScannerReflectionException class.

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

TypeScannerReflectionException(String, Exception, Assembly, IEnumerable<Exception>)

Initializes a new instance of the TypeScannerReflectionException class.

Declaration
public TypeScannerReflectionException(string message, Exception innerException, Assembly assembly, IEnumerable<Exception> loaderExceptions)
Parameters
Type Name Description
System.String message
System.Exception innerException
System.Reflection.Assembly assembly
System.Collections.Generic.IEnumerable<System.Exception> loaderExceptions

Properties

Assembly

The assembly causing the problem

Declaration
public Assembly Assembly { get; }
Property Value
Type Description
System.Reflection.Assembly

LoaderExceptions

Exceptions durings loading of typed from assembly

Declaration
public IEnumerable<Exception> LoaderExceptions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Exception>

Methods

CreateAggregateMessage(IEnumerable<TypeScannerReflectionException>)

Creates a string from a list of exceptions

Declaration
public static string CreateAggregateMessage(IEnumerable<TypeScannerReflectionException> exceptions)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TypeScannerReflectionException> exceptions

The list of exceptions

Returns
Type Description
System.String

A generated string from the exceptions

GetObjectData(SerializationInfo, StreamingContext)

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

Extension Methods