Class BootFailedException
An exception that is thrown if the Umbraco application cannot boot.
Inheritance
Namespace: Umbraco.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
public class BootFailedException : Exception, ISerializable, _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
protected BootFailedException(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. |
BootFailedException(String)
Initializes a new instance of the System.Exception class with a specified error message.
Declaration
public BootFailedException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
BootFailedException(String, Exception)
Initializes a new instance of the System.Exception 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 |
---|---|---|
System.String | message | The message that describes the error. |
System.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 |
---|---|
System.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. |
Remarks
The exception can be null, in which case a default message is used.
Exceptions
Type | Condition |
---|---|
BootFailedException |