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(SerializationInfo, StreamingContext)
Initializes a new instance of the InstallException class.
Declaration
protected InstallException(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. |
InstallException(String)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.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 ( langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |
InstallException(String, Object)
Initializes a new instance of the InstallException class.
Declaration
public InstallException(string message, object viewModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.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 |
---|---|---|
System.String | message | The message. |
System.String | view | The view. |
System.Object | viewModel | The view model. |
Properties
View SourceView
Gets the view.
Declaration
public string View { get; }
Property Value
Type | Description |
---|---|
System.String | The view. |
ViewModel
Gets the view model.
Declaration
public object ViewModel { get; }
Property Value
Type | Description |
---|---|
System.Object | 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.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(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. |