HostException Class

Definition

Defines the exception thrown when the Host cannot complete an operation such as checking whether there is any input available.

public class HostException : System.Management.Automation.RuntimeException
Inheritance
Derived

Inherited Members

System.Management.Automation.RuntimeException

Constructors

HostException()

Initializes a new instance of the HostException class

HostException(String)

Initializes a new instance of the HostException class and defines the error message

HostException(SerializationInfo, StreamingContext)

Initializes a new instance of the HostException class and defines the SerializationInfo and the StreamingContext.

HostException(String, Exception)

Initializes a new instance of the HostException class and defines the error message and inner exception.

HostException(String, Exception, String, ErrorCategory)

Initializes a new instance of the HostException class and defines the error message, inner exception, the error ID, and the error category.