Class BootFailedException
An exception that is thrown if the Umbraco application cannot boot.
Inheritance
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
public class BootFailedException : Exception
Constructors
View SourceBootFailedException()
Initializes a new instance of the BootFailedException class.
Declaration
public BootFailedException()
BootFailedException(SerializationInfo, StreamingContext)
Initializes a new instance of the BootFailedException class.
Declaration
[Obsolete("Constructors taking a signature of SerializationInfo info, StreamingContext context are deprecated and not used within Umbraco. Scheduled for removal in Umbraco 19.", DiagnosticId = "SYSLIB0051")]
protected BootFailedException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
BootFailedException(string)
Initializes a new instance of the BootFailedException class with a specified error message.
Declaration
public BootFailedException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
BootFailedException(string, Exception)
Initializes a new instance of the BootFailedException class with a specified error message and a reference to the inner exception which is the cause of this exception.
Declaration
public BootFailedException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| Exception | innerException | The inner exception, or null. |
Fields
View SourceDefaultMessage
Defines the default boot failed exception message.
Declaration
public const string DefaultMessage = "Boot failed: Umbraco cannot run. See Umbraco's log file for more details."
Field Value
| Type | Description |
|---|---|
| string |
Methods
View SourceRethrow(BootFailedException?)
Rethrows a captured BootFailedException.
Declaration
public static void Rethrow(BootFailedException? bootFailedException)
Parameters
| Type | Name | Description |
|---|---|---|
| BootFailedException | bootFailedException | The boot failed exception to rethrow, or null to throw with a default message. |
Remarks
The exception can be null, in which case a default message is used.
Exceptions
| Type | Condition |
|---|---|
| BootFailedException | Always thrown with the original exception details or a default message. |