ProviderInvocationException Class

Definition

An exception that wraps all exceptions that are thrown by providers. This allows callers of the provider APIs to be able to catch a single exception no matter what any of the various providers may have thrown.

public class ProviderInvocationException : System.Management.Automation.RuntimeException
Inheritance
ProviderInvocationException

Inherited Members

System.Management.Automation.RuntimeException

Constructors

ProviderInvocationException()

Constructs a ProviderInvocationException

ProviderInvocationException(String)

Constructs a ProviderInvocationException with a message

ProviderInvocationException(SerializationInfo, StreamingContext)

Constructs a ProviderInvocationException using serialized data

ProviderInvocationException(String, Exception)

Constructs a ProviderInvocationException with a message and inner exception.

Properties

ErrorRecord

Gets the error record.

Message

Gets the exception message

ProviderInfo

Gets the provider information of the provider that threw an exception.