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 InitializationExceptionHelper

Inheritance
System.Object
InitializationExceptionHelper
Namespace: EPiServer.Framework.Initialization.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class InitializationExceptionHelper : Object

Constructors

InitializationExceptionHelper()

Declaration
public InitializationExceptionHelper()

Methods

ThrowFriendlyAddonException(Exception, IEnumerable<String>)

Wrap exception to present information on how to disable add-ons or convert to NuGet add-ons

Declaration
public static void ThrowFriendlyAddonException(Exception exception, IEnumerable<string> addonsWithErrors)
Parameters
Type Name Description
System.Exception exception
System.Collections.Generic.IEnumerable<System.String> addonsWithErrors

ThrowFriendlyTypeScannerException(IEnumerable<TypeScannerReflectionException>, IEnumerable<String>)

Rethrow reflection errors in a more readable approach with support on how to disable add-ons

Declaration
public static void ThrowFriendlyTypeScannerException(IEnumerable<TypeScannerReflectionException> reflectionExceptions, IEnumerable<string> addonsWithErrors)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TypeScannerReflectionException> reflectionExceptions
System.Collections.Generic.IEnumerable<System.String> addonsWithErrors

ThrowIfAddonSystemIsOld(IEnumerable<Assembly>)

In 7.5 the add-on system itself was an add-on and customers will not get the updated version unless we force them to install via NuGet

Declaration
public static void ThrowIfAddonSystemIsOld(IEnumerable<Assembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies

ThrowIfLegacyDllIsPresent(IEnumerable<Assembly>)

The DLLs removed in 9 are left behind if you do a install rather than an upgrade of the NuGet packages. Make a friendly error.

Declaration
public static void ThrowIfLegacyDllIsPresent(IEnumerable<Assembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies

ThrowIfMirroringSystemIsOld(IEnumerable<Assembly>)

Mirroring have to be manually upgraded, avoid that people are running using the old version.

Declaration
public static void ThrowIfMirroringSystemIsOld(IEnumerable<Assembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies

ThrowIfShellIsOld(IEnumerable<Assembly>)

Shell was moved to UI in CMS 10, make sure an old Shell is not left in bin if UI is not installed

Declaration
public static void ThrowIfShellIsOld(IEnumerable<Assembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies

Extension Methods