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 Install
Declaration
public InstallException()
InstallException(SerializationInfo, StreamingContext)
Initializes a new instance of the Install
Declaration
protected InstallException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The System. |
System. |
context | The System. |
InstallException(String)
Initializes a new instance of the Install
Declaration
public InstallException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The message that describes the error. |
InstallException(String, Exception)
Initializes a new instance of the Install
Declaration
public InstallException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
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 ( langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |
InstallException(String, Object)
Initializes a new instance of the Install
Declaration
public InstallException(string message, object viewModel)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The message. |
System. |
viewModel | The view model. |
InstallException(String, String, Object)
Initializes a new instance of the Install
Declaration
public InstallException(string message, string view, object viewModel)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The message. |
System. |
view | The view. |
System. |
viewModel | The view model. |
Properties
View SourceView
Gets the view.
Declaration
public string View { get; }
Property Value
Type | Description |
---|---|
System. |
The view. |
ViewModel
Gets the view model.
Declaration
public object ViewModel { get; }
Property Value
Type | Description |
---|---|
System. |
The view model. |
Remarks
This object is not included when serializing.
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the System.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The System. |
System. |
context | The System. |