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

Constructors

ProviderInvocationException() ProviderInvocationException() ProviderInvocationException()

Constructs a ProviderInvocationException

ProviderInvocationException(SerializationInfo, StreamingContext) ProviderInvocationException(SerializationInfo, StreamingContext) ProviderInvocationException(SerializationInfo, StreamingContext)

Constructs a ProviderInvocationException using serialized data

ProviderInvocationException(String) ProviderInvocationException(String) ProviderInvocationException(String)

Constructs a ProviderInvocationException with a message

ProviderInvocationException(String, Exception) ProviderInvocationException(String, Exception) ProviderInvocationException(String, Exception)

Constructs a ProviderInvocationException with a message and inner exception.

Properties

ErrorRecord ErrorRecord ErrorRecord

Gets the error record.

Message Message Message

Gets the exception message

ProviderInfo ProviderInfo ProviderInfo

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

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