HostException HostException 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
type HostException = class
    inherit RuntimeException
Public Class HostException
Inherits RuntimeException
Inheritance
Derived

Constructors

HostException() HostException() HostException()

Initializes a new instance of the HostException class

HostException(SerializationInfo, StreamingContext) HostException(SerializationInfo, StreamingContext) HostException(SerializationInfo, StreamingContext)

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

HostException(String) HostException(String) HostException(String)

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

HostException(String, Exception) HostException(String, Exception) HostException(String, Exception)

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

HostException(String, Exception, String, ErrorCategory) HostException(String, Exception, String, ErrorCategory) 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.

Properties

ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) Inherited from RuntimeException

Applies to