HostException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the exception thrown when the Host cannot complete an operation such as checking whether there is any input available.
public ref class HostException : System::Management::Automation::RuntimeException
[System.Serializable]
public class HostException : System.Management.Automation.RuntimeException
public class HostException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type HostException = class
inherit RuntimeException
type HostException = class
inherit RuntimeException
Public Class HostException
Inherits RuntimeException
- Inheritance
- Derived
- Attributes
Constructors
HostException() |
Initializes a new instance of the HostException class. |
HostException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the HostException class and defines the SerializationInfo and the StreamingContext. |
HostException(String) |
Initializes a new instance of the HostException class and defines the error message. |
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. |
Properties
ErrorRecord |
Additional information about the error. (Inherited from RuntimeException) |
WasThrownFromThrowStatement | (Inherited from RuntimeException) |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Serializer for ISerializable (Inherited from RuntimeException) |