Search Results for

    Show / Hide Table of Contents
    View Source

    Class InstallException

    Used for steps to be able to return a JSON structure back to the UI.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Install
    Assembly: Umbraco.Core.dll
    Syntax
    public class InstallException : Exception

    Constructors

    View Source

    InstallException()

    Initializes a new instance of the InstallException class.

    Declaration
    public InstallException()
    View Source

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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 Source

    View

    Gets the view.

    Declaration
    public string View { get; }
    Property Value
    Type Description
    System.String

    The view.

    View Source

    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 Source

    GetObjectData(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • InstallException()
      • InstallException(SerializationInfo, StreamingContext)
      • InstallException(String)
      • InstallException(String, Exception)
      • InstallException(String, Object)
      • InstallException(String, String, Object)
    • Properties
      • View
      • ViewModel
    • Methods
      • GetObjectData(SerializationInfo, StreamingContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX