Class InstallException
Used for steps to be able to return a JSON structure back to the UI.
Inheritance
Namespace: Umbraco.Cms.Core.Install
Assembly: Umbraco.Core.dll
Syntax
public class InstallException : Exception
Constructors
View SourceInstallException()
Initializes a new instance of the InstallException class.
Declaration
public InstallException()
InstallException(string)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
InstallException(string, Exception)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| Exception | innerException | The exception that is the cause of the current exception, or a null reference (
|
InstallException(string, object)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message, object viewModel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message. |
| object | viewModel | The view model. |
InstallException(string, string, object?)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message, string view, object? viewModel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message. |
| string | view | The view. |
| object | viewModel | The view model. |
Properties
View SourceView
Gets the view.
Declaration
public string? View { get; }
Property Value
| Type | Description |
|---|---|
| string | The view. |
ViewModel
Gets the view model.
Declaration
public object? ViewModel { get; }
Property Value
| Type | Description |
|---|---|
| object | The view model. |
Remarks
This object is not included when serializing.