Class InitializationExceptionHelper
Inheritance
Namespace: EPiServer.Framework.Initialization.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
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 | |
System. |
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. |
reflectionExceptions | |
System. |
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. |
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. |
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. |
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. |
assemblies |