When I am creating error messages in PowerShell scripts, I like to use common .Net exceptions. Most of the time when I am searching for a list of exceptions to use, I end up using the All .Net Exceptions list generated by Mike Vallotton. I thought it was a clever idea so I went ahead and generated an updated list of my own.

I did this by parsing all the .Net 4.6.1 Namespace xml files on my system. All of the content below is auto generated and comes from Microsoft’s files that are used for IntelliSense. I hope you find this list of .Net Exceptions as useful as I do.

.Net Exceptions

System

System.AccessViolationException

The exception that is thrown when there is an attempt to read or write protected memory.

throw [System.AccessViolationException]::New('there is an attempt to read or write protected memory.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.AggregateException

Represents one or more errors that occur during application execution.

throw [System.AggregateException]::New('Represents one or more errors that occur during application execution.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.AppDomainUnloadedException

The exception that is thrown when an attempt is made to access an unloaded application domain.

throw [System.AppDomainUnloadedException]::New('an attempt is made to access an unloaded application domain.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ApplicationException

Serves as the base class for application-defined exceptions.

throw [System.ApplicationException]::New('Serves as the base class for application-defined exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ArgumentException

The exception that is thrown when one of the arguments provided to a method is not valid.

throw [System.ArgumentException]::New('one of the arguments provided to a method is not valid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ArgumentNullException

The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

throw [System.ArgumentNullException]::New('a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ArgumentOutOfRangeException

The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

throw [System.ArgumentOutOfRangeException]::New('the value of an argument is outside the allowable range of values as defined by the invoked method.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ArithmeticException

The exception that is thrown for errors in an arithmetic, casting, or conversion operation.

throw [System.ArithmeticException]::New('The exception that is thrown for errors in an arithmetic, casting, or conversion operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ArrayTypeMismatchException

The exception that is thrown when an attempt is made to store an element of the wrong type within an array.

throw [System.ArrayTypeMismatchException]::New('an attempt is made to store an element of the wrong type within an array.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.BadImageFormatException

The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid.

throw [System.BadImageFormatException]::New('the file image of a dynamic link library (DLL) or an executable program is invalid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.CannotUnloadAppDomainException

The exception that is thrown when an attempt to unload an application domain fails.

throw [System.CannotUnloadAppDomainException]::New('an attempt to unload an application domain fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ContextMarshalException

The exception that is thrown when an attempt to marshal an object across a context boundary fails.

throw [System.ContextMarshalException]::New('an attempt to marshal an object across a context boundary fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DataMisalignedException

The exception that is thrown when a unit of data is read from or written to an address that is not a multiple of the data size. This class cannot be inherited.

throw [System.DataMisalignedException]::New('a unit of data is read from or written to an address that is not a multiple of the data size. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DivideByZeroException

The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.

throw [System.DivideByZeroException]::New('there is an attempt to divide an integral or decimal value by zero.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DllNotFoundException

The exception that is thrown when a DLL specified in a DLL import cannot be found.

throw [System.DllNotFoundException]::New('a DLL specified in a DLL import cannot be found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DuplicateWaitObjectException

The exception that is thrown when an object appears more than once in an array of synchronization objects.

throw [System.DuplicateWaitObjectException]::New('an object appears more than once in an array of synchronization objects.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.EntryPointNotFoundException

The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.

throw [System.EntryPointNotFoundException]::New('an attempt to load a class fails due to the absence of an entry method.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Exception

Represents errors that occur during application execution.To browse the .NET Framework source code for this type, see the Reference Source.

throw [System.Exception]::New('Represents errors that occur during application execution.To browse the .NET Framework source code for this type, see the Reference Source.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ExecutionEngineException

The exception that is thrown when there is an internal error in the execution engine of the common language runtime. This class cannot be inherited.

throw [System.ExecutionEngineException]::New('there is an internal error in the execution engine of the common language runtime. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.FieldAccessException

The exception that is thrown when there is an invalid attempt to access a private or protected field inside a class.

throw [System.FieldAccessException]::New('there is an invalid attempt to access a private or protected field inside a class.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.FormatException

The exception that is thrown when the format of an argument is invalid, or when a composite format string is not well formed.

throw [System.FormatException]::New('the format of an argument is invalid, or when a composite format string is not well formed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IndexOutOfRangeException

The exception that is thrown when an attempt is made to access an element of an array or collection with an index that is outside its bounds.

throw [System.IndexOutOfRangeException]::New('an attempt is made to access an element of an array or collection with an index that is outside its bounds.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InsufficientExecutionStackException

The exception that is thrown when there is insufficient execution stack available to allow most methods to execute.

throw [System.InsufficientExecutionStackException]::New('there is insufficient execution stack available to allow most methods to execute.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InsufficientMemoryException

The exception that is thrown when a check for sufficient available memory fails. This class cannot be inherited.

throw [System.InsufficientMemoryException]::New('a check for sufficient available memory fails. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InvalidCastException

The exception that is thrown for invalid casting or explicit conversion.

throw [System.InvalidCastException]::New('The exception that is thrown for invalid casting or explicit conversion.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InvalidOperationException

The exception that is thrown when a method call is invalid for the object’s current state.

throw [System.InvalidOperationException]::New('a method call is invalid for the object's current state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InvalidProgramException

The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program.

throw [System.InvalidProgramException]::New('a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.InvalidTimeZoneException

The exception that is thrown when time zone information is invalid.

throw [System.InvalidTimeZoneException]::New('time zone information is invalid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MemberAccessException

The exception that is thrown when an attempt to access a class member fails.

throw [System.MemberAccessException]::New('an attempt to access a class member fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MethodAccessException

The exception that is thrown when there is an invalid attempt to access a method, such as accessing a private method from partially trusted code.

throw [System.MethodAccessException]::New('there is an invalid attempt to access a method, such as accessing a private method from partially trusted code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MissingFieldException

The exception that is thrown when there is an attempt to dynamically access a field that does not exist.

throw [System.MissingFieldException]::New('there is an attempt to dynamically access a field that does not exist.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MissingMemberException

The exception that is thrown when there is an attempt to dynamically access a class member that does not exist.

throw [System.MissingMemberException]::New('there is an attempt to dynamically access a class member that does not exist.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MissingMethodException

The exception that is thrown when there is an attempt to dynamically access a method that does not exist.

throw [System.MissingMethodException]::New('there is an attempt to dynamically access a method that does not exist.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.MulticastNotSupportedException

The exception that is thrown when there is an attempt to combine two delegates based on the System.Delegate type instead of the System.MulticastDelegate type. This class cannot be inherited.

throw [System.MulticastNotSupportedException]::New('there is an attempt to combine two delegates based on the System.Delegate type instead of the System.MulticastDelegate type. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.NotFiniteNumberException

The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).

throw [System.NotFiniteNumberException]::New('a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.NotImplementedException

The exception that is thrown when a requested method or operation is not implemented.

throw [System.NotImplementedException]::New('a requested method or operation is not implemented.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.NotSupportedException

The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.

throw [System.NotSupportedException]::New('an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.NullReferenceException

The exception that is thrown when there is an attempt to dereference a null object reference.

throw [System.NullReferenceException]::New('there is an attempt to dereference a null object reference.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ObjectDisposedException

The exception that is thrown when an operation is performed on a disposed object.

throw [System.ObjectDisposedException]::New('an operation is performed on a disposed object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.OperationCanceledException

The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.

throw [System.OperationCanceledException]::New('The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.OutOfMemoryException

The exception that is thrown when there is not enough memory to continue the execution of a program.

throw [System.OutOfMemoryException]::New('there is not enough memory to continue the execution of a program.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.OverflowException

The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow.

throw [System.OverflowException]::New('an arithmetic, casting, or conversion operation in a checked context results in an overflow.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.PlatformNotSupportedException

The exception that is thrown when a feature does not run on a particular platform.

throw [System.PlatformNotSupportedException]::New('a feature does not run on a particular platform.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.RankException

The exception that is thrown when an array with the wrong number of dimensions is passed to a method.

throw [System.RankException]::New('an array with the wrong number of dimensions is passed to a method.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.StackOverflowException

The exception that is thrown when the execution stack overflows because it contains too many nested method calls. This class cannot be inherited.

throw [System.StackOverflowException]::New('the execution stack overflows because it contains too many nested method calls. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.SystemException

Serves as the base class for system exceptions namespace.

throw [System.SystemException]::New('Serves as the base class for system exceptions namespace.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TimeoutException

The exception that is thrown when the time allotted for a process or operation has expired.

throw [System.TimeoutException]::New('the time allotted for a process or operation has expired.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TimeZoneNotFoundException

The exception that is thrown when a time zone cannot be found.

throw [System.TimeZoneNotFoundException]::New('a time zone cannot be found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TypeAccessException

The exception that is thrown when a method attempts to use a type that it does not have access to.

throw [System.TypeAccessException]::New('a method attempts to use a type that it does not have access to.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TypeInitializationException

The exception that is thrown as a wrapper around the exception thrown by the class initializer. This class cannot be inherited.

throw [System.TypeInitializationException]::New('The exception that is thrown as a wrapper around the class initializer. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TypeLoadException

The exception that is thrown when type-loading failures occur.

throw [System.TypeLoadException]::New('type-loading failures occur.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.TypeUnloadedException

The exception that is thrown when there is an attempt to access an unloaded class.

throw [System.TypeUnloadedException]::New('there is an attempt to access an unloaded class.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.UnauthorizedAccessException

The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.

throw [System.UnauthorizedAccessException]::New('the operating system denies access because of an I/O error or a specific type of security error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.UriFormatException

The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.

throw [System.UriFormatException]::New('an invalid Uniform Resource Identifier (URI) is detected.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.UriTemplateMatchException

Represents an error when matching a System.Uri to a System.UriTemplateTable.

throw [System.UriTemplateMatchException]::New('Represents an error when matching a System.Uri to a System.UriTemplateTable.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities

System.Activities.InvalidWorkflowException

Handles exceptions that occur when a workflow is not valid.

throw [System.Activities.InvalidWorkflowException]::New('Handles exceptions that occur when a workflow is not valid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.ValidationException

The exception that is thrown when a workflow or activity is in an invalid state.

throw [System.Activities.ValidationException]::New('a workflow or activity is in an invalid state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.VersionMismatchException

Specifies information about a version mismatch exception.

throw [System.Activities.VersionMismatchException]::New('Specifies information about a version mismatch exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.WorkflowApplicationAbortedException

Represents the exception that is thrown when an operation on a workflow instance is not valid because the instance has been aborted.

throw [System.Activities.WorkflowApplicationAbortedException]::New('an operation on a workflow instance is not valid because the instance has been aborted.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.WorkflowApplicationCompletedException

Represents the exception that is thrown when an operation on a workflow instance is not valid because the instance has completed.

throw [System.Activities.WorkflowApplicationCompletedException]::New('an operation on a workflow instance is not valid because the instance has completed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.WorkflowApplicationException

Provides the base class for handling an error that occurs during the execution of a workflow application.

throw [System.Activities.WorkflowApplicationException]::New('Provides the base class for handling an error that occurs during the execution of a workflow application.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.WorkflowApplicationTerminatedException

An exception that is thrown when an operation on a workflow instance is not valid because the instance has been terminated.

throw [System.Activities.WorkflowApplicationTerminatedException]::New('An exception that is thrown when an operation on a workflow instance is not valid because the instance has been terminated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.WorkflowApplicationUnloadedException

An exception that is thrown when an operation on a workflow instance is invalid because the instance has been unloaded.

throw [System.Activities.WorkflowApplicationUnloadedException]::New('An exception that is thrown when an operation on a workflow instance is invalid because the instance has been unloaded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.DynamicUpdate

System.Activities.DynamicUpdate.InstanceUpdateException

Represents an instance update exception.

throw [System.Activities.DynamicUpdate.InstanceUpdateException]::New('Represents an instance update exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.ExpressionParser

System.Activities.ExpressionParser.SourceExpressionException

Represents the exception that is thrown when a text-based expression cannot be converted into an executable form.

throw [System.Activities.ExpressionParser.SourceExpressionException]::New('a text-based expression cannot be converted into an executable form.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.Expressions

System.Activities.Expressions.LambdaSerializationException

The exception that is thrown when a XAML serialization attempt is made on a System.Activities.Expressions.LambdaValue1 or System.Activities.Expressions.LambdaReference1.

throw [System.Activities.Expressions.LambdaSerializationException]::New('a XAML serialization attempt is made on a System.Activities.Expressions.LambdaValue`1 or System.Activities.Expressions.LambdaReference`1.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.Presentation.Metadata

System.Activities.Presentation.Metadata.AttributeTableValidationException

Provides the functionality to throw an exception from the System.Activities.Presentation.Metadata.AttributeTableBuilder.ValidateTable method if the metadata provided in the table does not match properties, methods, and events on real types.

throw [System.Activities.Presentation.Metadata.AttributeTableValidationException]::New('Provides the functionality to throw an exception from the System.Activities.Presentation.Metadata.AttributeTableBuilder.ValidateTable method if the metadata provided in the table does not match properties, methods, and events on real types.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Activities.Statements

System.Activities.Statements.WorkflowTerminatedException

The exception that is thrown when an operation is invoked on a terminated System.Activities.WorkflowApplication.

throw [System.Activities.Statements.WorkflowTerminatedException]::New('an operation is invoked on a terminated System.Activities.WorkflowApplication.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.AddIn.Hosting

System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException

The exception that is thrown when a segment directory is missing from the pipeline directory structure.

throw [System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException]::New('a segment directory is missing from the pipeline directory structure.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.AddIn.Hosting.InvalidPipelineStoreException

The exception that is thrown when a directory is not found and the user does not have permission to access the pipeline root path or an add-in path.

throw [System.AddIn.Hosting.InvalidPipelineStoreException]::New('a directory is not found and the user does not have permission to access the pipeline root path or an add-in path.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Collections.Generic

System.Collections.Generic.KeyNotFoundException

The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.

throw [System.Collections.Generic.KeyNotFoundException]::New('the key specified for accessing an element in a collection does not match any key in the collection.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel

System.ComponentModel.InvalidAsynchronousStateException

Thrown when a thread on which an operation should execute no longer exists or has no message loop.

throw [System.ComponentModel.InvalidAsynchronousStateException]::New('Thrown when a thread on which an operation should execute no longer exists or has no message loop.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.InvalidEnumArgumentException

The exception thrown when using invalid arguments that are enumerators.

throw [System.ComponentModel.InvalidEnumArgumentException]::New('using invalid arguments that are enumerators.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.LicenseException

Represents the exception thrown when a component cannot be granted a license.

throw [System.ComponentModel.LicenseException]::New('a component cannot be granted a license.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.WarningException

Specifies an exception that is handled as a warning instead of an error.

throw [System.ComponentModel.WarningException]::New('Specifies an exception that is handled as a warning instead of an error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Win32Exception

Throws an exception for a Win32 error code.

throw [System.ComponentModel.Win32Exception]::New('Throws an exception for a Win32 error code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Composition

System.ComponentModel.Composition.ChangeRejectedException

An exception that indicates whether a part has been rejected during composition.

throw [System.ComponentModel.Composition.ChangeRejectedException]::New('An exception that indicates whether a part has been rejected during composition.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Composition.CompositionContractMismatchException

The exception that is thrown when the underlying exported value or metadata of a System.Lazy1 or System.Lazy2 object cannot be cast to T or TMetadataView, respectively.

throw [System.ComponentModel.Composition.CompositionContractMismatchException]::New('the underlying exported value or metadata of a System.Lazy`1 or System.Lazy`2 object cannot be cast to T or TMetadataView, respectively.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Composition.CompositionException

Represents the exception that is thrown when one or more errors occur during composition in a System.ComponentModel.Composition.Hosting.CompositionContainer object.

throw [System.ComponentModel.Composition.CompositionException]::New('one or more errors occur during composition in a System.ComponentModel.Composition.Hosting.CompositionContainer object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Composition.ImportCardinalityMismatchException

The exception that is thrown when the cardinality of an import is not compatible with the cardinality of the matching exports.

throw [System.ComponentModel.Composition.ImportCardinalityMismatchException]::New('the cardinality of an import is not compatible with the cardinality of the matching exports.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Composition.Primitives

System.ComponentModel.Composition.Primitives.ComposablePartException

The exception that is thrown when an error occurs when calling methods on a System.ComponentModel.Composition.Primitives.ComposablePart object.

throw [System.ComponentModel.Composition.Primitives.ComposablePartException]::New('an error occurs when calling methods on a System.ComponentModel.Composition.Primitives.ComposablePart object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.DataAnnotations

System.ComponentModel.DataAnnotations.ValidationException

Represents the exception that occurs during validation of a data field when the System.ComponentModel.DataAnnotations.ValidationAttribute class is used.

throw [System.ComponentModel.DataAnnotations.ValidationException]::New('Represents the exception that occurs during validation of a data field when the System.ComponentModel.DataAnnotations.ValidationAttribute class is used.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Design

System.ComponentModel.Design.CheckoutException

The exception that is thrown when an attempt to check out a file that is checked into a source code management program is canceled or fails.

throw [System.ComponentModel.Design.CheckoutException]::New('an attempt to check out a file that is checked into a source code management program is canceled or fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ComponentModel.Design.Serialization

System.ComponentModel.Design.Serialization.CodeDomSerializerException

The exception that is thrown when line number information is available for a serialization error.

throw [System.ComponentModel.Design.Serialization.CodeDomSerializerException]::New('line number information is available for a serialization error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration

System.Configuration.ConfigurationErrorsException

The current value is not one of the System.Web.Configuration.PagesSection.EnableSessionState values.

throw [System.Configuration.ConfigurationErrorsException]::New('The current value is not one of the System.Web.Configuration.PagesSection.EnableSessionState values.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.ConfigurationException

The exception that is thrown when a configuration system error has occurred.

throw [System.Configuration.ConfigurationException]::New('a configuration system error has occurred.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.SettingsPropertyIsReadOnlyException

Provides an exception for read-only System.Configuration.SettingsProperty objects.

throw [System.Configuration.SettingsPropertyIsReadOnlyException]::New('Provides an exception for read-only System.Configuration.SettingsProperty objects.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.SettingsPropertyNotFoundException

Provides an exception for System.Configuration.SettingsProperty objects that are not found.

throw [System.Configuration.SettingsPropertyNotFoundException]::New('Provides an exception for System.Configuration.SettingsProperty objects that are not found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.SettingsPropertyWrongTypeException

Provides an exception that is thrown when an invalid type is used with a System.Configuration.SettingsProperty object.

throw [System.Configuration.SettingsPropertyWrongTypeException]::New('Provides an exception that is thrown when an invalid type is used with a System.Configuration.SettingsProperty object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.Install

System.Configuration.Install.InstallException

The exception that is thrown when an error occurs during the commit, rollback, or uninstall phase of an installation.

throw [System.Configuration.Install.InstallException]::New('an error occurs during the commit, rollback, or uninstall phase of an installation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Configuration.Provider

System.Configuration.Provider.ProviderException

The exception that is thrown when a configuration provider error has occurred. This exception class is also used by providers to throw exceptions when internal errors occur within the provider that do not map to other pre-existing exception classes.

throw [System.Configuration.Provider.ProviderException]::New('a configuration provider error has occurred. This exception class is also used by providers to throw exceptions when internal errors occur within the provider that do not map to other pre-existing exception classes.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data

System.Data.ConstraintException

Represents the exception that is thrown when attempting an action that violates a constraint.

throw [System.Data.ConstraintException]::New('attempting an action that violates a constraint.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.DataException

Represents the exception that is thrown when errors are generated using ADO.NET components.

throw [System.Data.DataException]::New('errors are generated using ADO.NET components.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.DBConcurrencyException

The exception that is thrown by the System.Data.Common.DataAdapter during an insert, update, or delete operation if the number of rows affected equals zero.

throw [System.Data.DBConcurrencyException]::New('the System.Data.Common.DataAdapter during an insert, update, or delete operation if the number of rows affected equals zero.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.DeletedRowInaccessibleException

Represents the exception that is thrown when an action is tried on a System.Data.DataRow that has been deleted.

throw [System.Data.DeletedRowInaccessibleException]::New('an action is tried on a System.Data.DataRow that has been deleted.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.DuplicateNameException

Represents the exception that is thrown when a duplicate database object name is encountered during an add operation in a System.Data.DataSet -related object.

throw [System.Data.DuplicateNameException]::New('a duplicate database object name is encountered during an add operation in a System.Data.DataSet -related object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.EntityCommandCompilationException

Represents errors that occur during command compilation; when a command tree could not be produced to represent the command text.

throw [System.Data.EntityCommandCompilationException]::New('Represents errors that occur during command compilation; when a command tree could not be produced to represent the command text.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.EntityCommandExecutionException

Represents errors that occur when the underlying storage provider could not execute the specified command. This exception usually wraps a provider-specific exception.

throw [System.Data.EntityCommandExecutionException]::New('Represents errors that occur when the underlying storage provider could not execute the specified command. This exception usually wraps a provider-specific exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.EntityException

Represents Entity Framework-related errors that occur in the EntityClient namespace. The EntityException is the base class for all Entity Framework exceptions thrown by the EntityClient.

throw [System.Data.EntityException]::New('Represents Entity Framework-related errors that occur in the EntityClient namespace. The EntityException is the base class for all Entity Framework exceptions thrown by the EntityClient.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.EntitySqlException

Represents errors that occur when parsing Entity SQL command text. This exception is thrown when syntactic or semantic rules are violated.

throw [System.Data.EntitySqlException]::New('Represents errors that occur when parsing Entity SQL command text. This exception is thrown when syntactic or semantic rules are violated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.EvaluateException

Represents the exception that is thrown when the System.Data.DataColumn.Expression property of a System.Data.DataColumn cannot be evaluated.

throw [System.Data.EvaluateException]::New('the System.Data.DataColumn.Expression property of a System.Data.DataColumn cannot be evaluated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.InRowChangingEventException

Represents the exception that is thrown when you call the System.Data.DataRow.EndEdit method within the System.Data.DataTable.RowChanging event.

throw [System.Data.InRowChangingEventException]::New('you call the System.Data.DataRow.EndEdit method within the System.Data.DataTable.RowChanging event.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.InvalidCommandTreeException

The exception that is thrown to indicate that a command tree is invalid. This exception is currently not thrown anywhere in the Entity Framework.

throw [System.Data.InvalidCommandTreeException]::New('The exception that is thrown to indicate that a command tree is invalid. This exception is currently not thrown anywhere in the Entity Framework.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.InvalidConstraintException

Represents the exception that is thrown when incorrectly trying to create or access a relation.

throw [System.Data.InvalidConstraintException]::New('incorrectly trying to create or access a relation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.InvalidExpressionException

Represents the exception that is thrown when you try to add a System.Data.DataColumn that contains an invalid System.Data.DataColumn.Expression to a System.Data.DataColumnCollection.

throw [System.Data.InvalidExpressionException]::New('you try to add a System.Data.DataColumn that contains an invalid System.Data.DataColumn.Expression to a System.Data.DataColumnCollection.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.MappingException

The exception that is thrown when mapping related service requests fail.

throw [System.Data.MappingException]::New('mapping related service requests fail.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.MetadataException

The exception that is thrown when metadata related service requests fails.

throw [System.Data.MetadataException]::New('metadata related service requests fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.MissingPrimaryKeyException

Represents the exception that is thrown when you try to access a row in a table that has no primary key.

throw [System.Data.MissingPrimaryKeyException]::New('you try to access a row in a table that has no primary key.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.NoNullAllowedException

Represents the exception that is thrown when you try to insert a null value into a column where System.Data.DataColumn.AllowDBNull is set to false.

throw [System.Data.NoNullAllowedException]::New('you try to insert a null value into a column where System.Data.DataColumn.AllowDBNull is set to false.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.ObjectNotFoundException

The exception that is thrown when an object is not present.

throw [System.Data.ObjectNotFoundException]::New('an object is not present.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.OperationAbortedException

This exception is thrown when an ongoing operation is aborted by the user.

throw [System.Data.OperationAbortedException]::New('This exception is thrown when an ongoing operation is aborted by the user.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.OptimisticConcurrencyException

The exception that is thrown when an optimistic concurrency violation occurs.

throw [System.Data.OptimisticConcurrencyException]::New('an optimistic concurrency violation occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.PropertyConstraintException

Property constraint exception class. Note that this class has state - so if you change even its internals, it can be a breaking change.

throw [System.Data.PropertyConstraintException]::New('Property constraint exception class. Note that this class has state - so if you change even its internals, it can be a breaking change.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.ProviderIncompatibleException

The exception that is thrown when the underlying data provider is incompatible with the Entity Framework.

throw [System.Data.ProviderIncompatibleException]::New('the underlying data provider is incompatible with the Entity Framework.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.ReadOnlyException

Represents the exception that is thrown when you try to change the value of a read-only column.

throw [System.Data.ReadOnlyException]::New('you try to change the value of a read-only column.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.RowNotInTableException

Represents the exception that is thrown when you try to perform an operation on a System.Data.DataRow that is not in a System.Data.DataTable.

throw [System.Data.RowNotInTableException]::New('you try to perform an operation on a System.Data.DataRow that is not in a System.Data.DataTable.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.StrongTypingException

The exception that is thrown by a strongly typed System.Data.DataSet when the user accesses a DBNull value.

throw [System.Data.StrongTypingException]::New('a strongly typed System.Data.DataSet when the user accesses a DBNull value.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SyntaxErrorException

Represents the exception that is thrown when the System.Data.DataColumn.Expression property of a System.Data.DataColumn contains a syntax error.

throw [System.Data.SyntaxErrorException]::New('the System.Data.DataColumn.Expression property of a System.Data.DataColumn contains a syntax error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.TypedDataSetGeneratorException

The exception that is thrown when a name conflict occurs while generating a strongly typed System.Data.DataSet.

throw [System.Data.TypedDataSetGeneratorException]::New('a name conflict occurs while generating a strongly typed System.Data.DataSet.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.UpdateException

The exception that is thrown when modifications to object instances cannot be persisted to the data source.

throw [System.Data.UpdateException]::New('modifications to object instances cannot be persisted to the data source.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.VersionNotFoundException

Represents the exception that is thrown when you try to return a version of a System.Data.DataRow that has been deleted.

throw [System.Data.VersionNotFoundException]::New('you try to return a version of a System.Data.DataRow that has been deleted.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Common

System.Data.Common.DbException

The base class for all exceptions thrown on behalf of the data source.

throw [System.Data.Common.DbException]::New('The base class for all exceptions thrown on behalf of the data source.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Design

System.Data.Design.TypedDataSetGeneratorException

The exception that is thrown when a name conflict occurs while a strongly typed System.Data.DataSet is being generated.

throw [System.Data.Design.TypedDataSetGeneratorException]::New('a name conflict occurs while a strongly typed System.Data.DataSet is being generated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Linq

System.Data.Linq.ChangeConflictException

Thrown when an update fails because database values have been updated since the client last read them.

throw [System.Data.Linq.ChangeConflictException]::New('Thrown when an update fails because database values have been updated since the client last read them.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Linq.DuplicateKeyException

Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used.

throw [System.Data.Linq.DuplicateKeyException]::New('Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException

Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.

throw [System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException]::New('Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Odbc

System.Data.Odbc.OdbcException

The exception that is generated when a warning or error is returned by an ODBC data source. This class cannot be inherited.

throw [System.Data.Odbc.OdbcException]::New('The exception that is generated when a warning or error is returned by an ODBC data source. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.OleDb

System.Data.OleDb.OleDbException

The exception that is thrown when the underlying provider returns a warning or error for an OLE DB data source. This class cannot be inherited.

throw [System.Data.OleDb.OleDbException]::New('the underlying provider returns a warning or error for an OLE DB data source. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.OracleClient

System.Data.OracleClient.OracleException

The exception that is generated when a warning or error is returned by an Oracle database or the .NET Framework Data Provider for Oracle. This class cannot be inherited.

throw [System.Data.OracleClient.OracleException]::New('The exception that is generated when a warning or error is returned by an Oracle database or the .NET Framework Data Provider for Oracle. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Services

System.Data.Services.DataServiceException

Represents an instance of the System.Data.Services.DataServiceException class with a specified message that describes the error.

throw [System.Data.Services.DataServiceException]::New('Represents an instance of the System.Data.Services.DataServiceException class with a specified message that describes the error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Services.Client

System.Data.Services.Client.DataServiceClientException

Represents errors that occur during execution of WCF Data Services client applications.

throw [System.Data.Services.Client.DataServiceClientException]::New('Represents errors that occur during execution of WCF Data Services client applications.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Services.Client.DataServiceQueryException

Exception that indicates an error occurred loading the property value from the data service.

throw [System.Data.Services.Client.DataServiceQueryException]::New('Exception that indicates an error occurred loading the property value from the data service.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.Services.Client.DataServiceRequestException

Represents the error thrown if the data service returns a response code less than 200 or greater than 299, or the top-level element in the response is . This class cannot be inherited.

throw [System.Data.Services.Client.DataServiceRequestException]::New('Represents the error thrown if the data service returns a response code less than 200 or greater than 299, or the top-level element in the response is <error>. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlClient

System.Data.SqlClient.SqlException

The exception that is thrown when SQL Server returns a warning or error. This class cannot be inherited.

throw [System.Data.SqlClient.SqlException]::New('SQL Server returns a warning or error. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlTypes

System.Data.SqlTypes.SqlAlreadyFilledException

The System.Data.SqlTypes.SqlAlreadyFilledException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.

throw [System.Data.SqlTypes.SqlAlreadyFilledException]::New('The System.Data.SqlTypes.SqlAlreadyFilledException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlTypes.SqlNotFilledException

The System.Data.SqlTypes.SqlNotFilledException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.

throw [System.Data.SqlTypes.SqlNotFilledException]::New('The System.Data.SqlTypes.SqlNotFilledException class is not intended for use as a stand-alone component, but as a class from which other classes derive standard functionality.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlTypes.SqlNullValueException

The exception that is thrown when the Value property of a System.Data.SqlTypes structure is set to null.

throw [System.Data.SqlTypes.SqlNullValueException]::New('the Value property of a System.Data.SqlTypes structure is set to null.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlTypes.SqlTruncateException

The exception that is thrown when you set a value into a System.Data.SqlTypes structure would truncate that value.

throw [System.Data.SqlTypes.SqlTruncateException]::New('you set a value into a System.Data.SqlTypes structure would truncate that value.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Data.SqlTypes.SqlTypeException

The base exception class for the System.Data.SqlTypes.

throw [System.Data.SqlTypes.SqlTypeException]::New('The base exception class for the System.Data.SqlTypes.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application

System.Deployment.Application.CompatibleFrameworkMissingException

This exception is thrown when a version of the .NET Framework that is compatible with this application cannot be found.

throw [System.Deployment.Application.CompatibleFrameworkMissingException]::New('This exception is thrown when a version of the .NET Framework that is compatible with this application cannot be found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.DependentPlatformMissingException

The exception that is thrown when the platform dependency is not found during activation of the ClickOnce deployment and the deployment will not run.

throw [System.Deployment.Application.DependentPlatformMissingException]::New('the platform dependency is not found during activation of the ClickOnce deployment and the deployment will not run.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.DeploymentDownloadException

Indicates that there was an error downloading either the ClickOnce manifests or the deployment’s files to the client computer.

throw [System.Deployment.Application.DeploymentDownloadException]::New('Indicates that there was an error downloading either the ClickOnce manifests or the deployment's files to the client computer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.DeploymentException

Defines a base class for all deployment-related exceptions.

throw [System.Deployment.Application.DeploymentException]::New('Defines a base class for all deployment-related exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.InvalidDeploymentException

Indicates that ClickOnce could not read either the deployment or application manifests.

throw [System.Deployment.Application.InvalidDeploymentException]::New('Indicates that ClickOnce could not read either the deployment or application manifests.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.SupportedRuntimeMissingException

This exception is thrown when a runtime version that is compatible with this application cannot be found.

throw [System.Deployment.Application.SupportedRuntimeMissingException]::New('This exception is thrown when a runtime version that is compatible with this application cannot be found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Deployment.Application.TrustNotGrantedException

Indicates that the application does not have the appropriate level of trust to run on the local computer.

throw [System.Deployment.Application.TrustNotGrantedException]::New('Indicates that the application does not have the appropriate level of trust to run on the local computer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Eventing.Reader

System.Diagnostics.Eventing.Reader.EventLogException

Represents the base class for all the exceptions that are thrown when an error occurs while reading event log related information.

throw [System.Diagnostics.Eventing.Reader.EventLogException]::New('Represents the base class for all the exceptions that are thrown when an error occurs while reading event log related information.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Eventing.Reader.EventLogInvalidDataException

Represents the exception thrown when an event provider publishes invalid data in an event.

throw [System.Diagnostics.Eventing.Reader.EventLogInvalidDataException]::New('an event provider publishes invalid data in an event.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Eventing.Reader.EventLogNotFoundException

Represents the exception that is thrown when a requested event log (usually specified by the name of the event log or the path to the event log file) does not exist.

throw [System.Diagnostics.Eventing.Reader.EventLogNotFoundException]::New('a requested event log (usually specified by the name of the event log or the path to the event log file) does not exist.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException

Represents the exception that is thrown when a specified event provider name references a disabled event provider. A disabled event provider cannot publish events.

throw [System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException]::New('a specified event provider name references a disabled event provider. A disabled event provider cannot publish events.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Eventing.Reader.EventLogReadingException

Represents an exception that is thrown when an error occurred while reading, querying, or subscribing to the events in an event log.

throw [System.Diagnostics.Eventing.Reader.EventLogReadingException]::New('Represents an exception that is thrown when an error occurred while reading, querying, or subscribing to the events in an event log.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Diagnostics.Tracing

System.Diagnostics.Tracing.EventSourceException

The exception that is thrown when an error occurs during event tracing for Windows (ETW).

throw [System.Diagnostics.Tracing.EventSourceException]::New('an error occurs during event tracing for Windows (ETW).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices

System.DirectoryServices.DirectoryServicesCOMException

Contains extended error information about an error that occurred when the System.DirectoryServices.DirectoryEntry.Invoke(System.String,System.Object[]) method is called.

throw [System.DirectoryServices.DirectoryServicesCOMException]::New('Contains extended error information about an error that occurred when the System.DirectoryServices.DirectoryEntry.Invoke(System.String,System.Object[]) method is called.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement

System.DirectoryServices.AccountManagement.MultipleMatchesException

This exception is thrown by methods that expect to match a single principal object when there are multiple matches to the search query.

throw [System.DirectoryServices.AccountManagement.MultipleMatchesException]::New('This exception is thrown by methods that expect to match a single principal object when there are multiple matches to the search query.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.NoMatchingPrincipalException

This exception is thrown when no matching principal object could be found with the specified parameters.

throw [System.DirectoryServices.AccountManagement.NoMatchingPrincipalException]::New('This exception is thrown when no matching principal object could be found with the specified parameters.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.PasswordException

This exception is thrown when a password does not meet complexity requirements.

throw [System.DirectoryServices.AccountManagement.PasswordException]::New('This exception is thrown when a password does not meet complexity requirements.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.PrincipalException

The base class of exceptions thrown by System.DirectoryServices.AccountManagement objects.

throw [System.DirectoryServices.AccountManagement.PrincipalException]::New('The base class of exceptions thrown by System.DirectoryServices.AccountManagement objects.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.PrincipalExistsException

Thrown by System.DirectoryServices.AccountManagement.PrincipalCollection.Add when an attempt is made to insert a principal that already exists in the collection, or by System.DirectoryServices.AccountManagement.Principal.Save when an attempt is made to save a new principal that already exists in the store.

throw [System.DirectoryServices.AccountManagement.PrincipalExistsException]::New('Thrown by System.DirectoryServices.AccountManagement.PrincipalCollection.Add when an attempt is made to insert a principal that already exists in the collection, or by System.DirectoryServices.AccountManagement.Principal.Save when an attempt is made to save a new principal that already exists in the store.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.PrincipalOperationException

Thrown when ADSI returns an error during an operation to update the store.

throw [System.DirectoryServices.AccountManagement.PrincipalOperationException]::New('Thrown when ADSI returns an error during an operation to update the store.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.AccountManagement.PrincipalServerDownException

This exception is thrown when the API is unable to connect to the server.

throw [System.DirectoryServices.AccountManagement.PrincipalServerDownException]::New('This exception is thrown when the API is unable to connect to the server.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory

System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException

The System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException class exception is thrown when an Active Directory Domain Services object is created and that object already exists in the underlying directory store.

throw [System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException]::New('The System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException class exception is thrown when an Active Directory Domain Services object is created and that object already exists in the underlying directory store.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException

The System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.

throw [System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException]::New('The System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException

The System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.

throw [System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException]::New('The System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException

The System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.

throw [System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException]::New('The System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException

The System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException class exception is thrown when a trust collision occurs during a trust relationship management request.

throw [System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException]::New('The System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException class exception is thrown when a trust collision occurs during a trust relationship management request.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException

The System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException exception is thrown when the request to synchronize from all servers fails.

throw [System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException]::New('The System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException exception is thrown when the request to synchronize from all servers fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols

System.DirectoryServices.Protocols.BerConversionException

The System.DirectoryServices.Protocols.BerConversionException class is an exception thrown when converting data using a System.DirectoryServices.Protocols.BerConverter object.

throw [System.DirectoryServices.Protocols.BerConversionException]::New('The System.DirectoryServices.Protocols.BerConversionException class is an exception thrown when converting data using a System.DirectoryServices.Protocols.BerConverter object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.DirectoryException

The System.DirectoryServices.Protocols.DirectoryException class is an abstract class used as the base class for all System.DirectoryServices.Protocols exceptions.

throw [System.DirectoryServices.Protocols.DirectoryException]::New('The System.DirectoryServices.Protocols.DirectoryException class is an abstract class used as the base class for all System.DirectoryServices.Protocols exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.DirectoryOperationException

The System.DirectoryServices.Protocols.DirectoryOperationException class is an exception thrown by the System.DirectoryServices.Protocols.LdapConnection.SendRequest(System.DirectoryServices.Protocols.DirectoryRequest) method to indicate that the server returned a System.DirectoryServices.Protocols.DirectoryResponse object with an error.

throw [System.DirectoryServices.Protocols.DirectoryOperationException]::New('The System.DirectoryServices.Protocols.DirectoryOperationException class is an exception thrown by the System.DirectoryServices.Protocols.LdapConnection.SendRequest(System.DirectoryServices.Protocols.DirectoryRequest) method to indicate that the server returned a System.DirectoryServices.Protocols.DirectoryResponse object with an error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.DsmlInvalidDocumentException

The System.DirectoryServices.Protocols.DsmlInvalidDocumentException class is an exception that occurs when a DSML Request or Response document is not well-formed XML or cannot be validated with DSMLv2 schema.

throw [System.DirectoryServices.Protocols.DsmlInvalidDocumentException]::New('The System.DirectoryServices.Protocols.DsmlInvalidDocumentException class is an exception that occurs when a DSML Request or Response document is not well-formed XML or cannot be validated with DSMLv2 schema.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.ErrorResponseException

The System.DirectoryServices.Protocols.ErrorResponseException class is an exception that occurs when the server returns an <errorResponse>.

throw [System.DirectoryServices.Protocols.ErrorResponseException]::New('The System.DirectoryServices.Protocols.ErrorResponseException class is an exception that occurs when the server returns an &lt;errorResponse&gt;.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.LdapException

The System.DirectoryServices.Protocols.LdapException class is an exception that occurs when LDAP returns an error code not included in System.DirectoryServices.Protocols.ResultCode.

throw [System.DirectoryServices.Protocols.LdapException]::New('The System.DirectoryServices.Protocols.LdapException class is an exception that occurs when LDAP returns an error code not included in System.DirectoryServices.Protocols.ResultCode.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.DirectoryServices.Protocols.TlsOperationException

The System.DirectoryServices.Protocols.TlsOperationException class is an exception that occurs in the System.DirectoryServices.Protocols.LdapSessionOptions.StartTransportLayerSecurity(System.DirectoryServices.Protocols.DirectoryControlCollection) method if the request fails.

throw [System.DirectoryServices.Protocols.TlsOperationException]::New('The System.DirectoryServices.Protocols.TlsOperationException class is an exception that occurs in the System.DirectoryServices.Protocols.LdapSessionOptions.StartTransportLayerSecurity(System.DirectoryServices.Protocols.DirectoryControlCollection) method if the request fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Drawing.Printing

System.Drawing.Printing.InvalidPrinterException

Represents the exception that is thrown when you try to access a printer using printer settings that are not valid.

throw [System.Drawing.Printing.InvalidPrinterException]::New('you try to access a printer using printer settings that are not valid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.EnterpriseServices

System.EnterpriseServices.RegistrationException

The exception that is thrown when a registration error is detected.

throw [System.EnterpriseServices.RegistrationException]::New('a registration error is detected.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.EnterpriseServices.ServicedComponentException

The exception that is thrown when an error is detected in a serviced component.

throw [System.EnterpriseServices.ServicedComponentException]::New('an error is detected in a serviced component.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Globalization

System.Globalization.CultureNotFoundException

The exception that is thrown when a method is invoked which attempts to construct a culture that is not available on the machine.

throw [System.Globalization.CultureNotFoundException]::New('a method is invoked which attempts to construct a culture that is not available on the machine.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel

System.IdentityModel.AsynchronousOperationException

The exception that is thrown when an error occurs during an asynchronous operation.

throw [System.IdentityModel.AsynchronousOperationException]::New('an error occurs during an asynchronous operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.BadRequestException

The exception that is thrown when a token request (RST) is not understood by the security token service (STS).

throw [System.IdentityModel.BadRequestException]::New('a token request (RST) is not understood by the security token service (STS).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.LimitExceededException

The exception that is thrown when a configured limit or quota is exceeded.

throw [System.IdentityModel.LimitExceededException]::New('a configured limit or quota is exceeded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.RequestException

The base class for exceptions thrown on request failures.

throw [System.IdentityModel.RequestException]::New('The base class for exceptions thrown on request failures.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.RequestFailedException

The exception that is thrown if the specified request (RST) failed due to an external reason that cannot be specifically determined.

throw [System.IdentityModel.RequestFailedException]::New('the specified request (RST) failed due to an external reason that cannot be specifically determined.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.SecurityMessageSerializationException

The exception that is thrown when an error occurs while serializing a security message.

throw [System.IdentityModel.SecurityMessageSerializationException]::New('an error occurs while serializing a security message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.SignatureVerificationFailedException

The exception that is thrown when an error occurs while processing a signature

throw [System.IdentityModel.SignatureVerificationFailedException]::New('an error occurs while processing a signature')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.UnsupportedTokenTypeBadRequestException

The exception that is thrown when the specified token request (RST) is not understood because of an unknown token type.

throw [System.IdentityModel.UnsupportedTokenTypeBadRequestException]::New('the specified token request (RST) is not understood because of an unknown token type.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Metadata

System.IdentityModel.Metadata.MetadataSerializationException

The exception that is thrown when an error occurs while serializing or deserializing SAML metadata.

throw [System.IdentityModel.Metadata.MetadataSerializationException]::New('an error occurs while serializing or deserializing SAML metadata.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Protocols.WSTrust

System.IdentityModel.Protocols.WSTrust.InvalidRequestException

The exception that is thrown when the request (RST) is invalid or malformed.

throw [System.IdentityModel.Protocols.WSTrust.InvalidRequestException]::New('the request (RST) is invalid or malformed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Protocols.WSTrust.WSTrustSerializationException

The exception that is thrown when an error occurs while serializing or deserializing a WS-Trust message.

throw [System.IdentityModel.Protocols.WSTrust.WSTrustSerializationException]::New('an error occurs while serializing or deserializing a WS-Trust message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors

System.IdentityModel.Selectors.CardSpaceException

The exception that is thrown when one or more exceptions have occurred at the CardSpace service level. The cause of the error will be logged in the event log.

throw [System.IdentityModel.Selectors.CardSpaceException]::New('one or more exceptions have occurred at the CardSpace service level. The cause of the error will be logged in the event log.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.IdentityValidationException

Exception class to indicate that the recipient certificate was not valid.

throw [System.IdentityModel.Selectors.IdentityValidationException]::New('Exception class to indicate that the recipient certificate was not valid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.PolicyValidationException

Exception class to indicate that the policy supplied by the recipient could not be validated.

throw [System.IdentityModel.Selectors.PolicyValidationException]::New('Exception class to indicate that the policy supplied by the recipient could not be validated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.ServiceBusyException

Exception class to indicate that the CardSpace service is busy processing other requests.

throw [System.IdentityModel.Selectors.ServiceBusyException]::New('Exception class to indicate that the CardSpace service is busy processing other requests.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.ServiceNotStartedException

The exception that is thrown when CardSpace has not been started on the user’s computer.

throw [System.IdentityModel.Selectors.ServiceNotStartedException]::New('CardSpace has not been started on the user's computer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.StsCommunicationException

The exception that is thrown when there is a problem communicating with the security token service.

throw [System.IdentityModel.Selectors.StsCommunicationException]::New('there is a problem communicating with the security token service.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.UnsupportedPolicyOptionsException

Indicates that a policy was provided to the system that included options that were unsupported.

throw [System.IdentityModel.Selectors.UnsupportedPolicyOptionsException]::New('Indicates that a policy was provided to the system that included options that were unsupported.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.UntrustedRecipientException

The exception that is thrown when the user decides not to trust the entity that is requesting a token after reviewing the information from their certificate.

throw [System.IdentityModel.Selectors.UntrustedRecipientException]::New('the user decides not to trust the entity that is requesting a token after reviewing the information from their certificate.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Selectors.UserCancellationException

The exception that is thrown when the user cancels an operation during the System.IdentityModel.Selectors.CardSpaceSelector.GetToken(System.IdentityModel.Selectors.CardSpacePolicyElement[],System.IdentityModel.Selectors.SecurityTokenSerializer) call.

throw [System.IdentityModel.Selectors.UserCancellationException]::New('the user cancels an operation during the System.IdentityModel.Selectors.CardSpaceSelector.GetToken(System.IdentityModel.Selectors.CardSpacePolicyElement[],System.IdentityModel.Selectors.SecurityTokenSerializer) call.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Services

System.IdentityModel.Services.AsynchronousOperationException

The exception that is thrown when an error occurs during an asynchronous operation.

throw [System.IdentityModel.Services.AsynchronousOperationException]::New('an error occurs during an asynchronous operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Services.FederatedAuthenticationSessionEndingException

Indicates that the sign-in session should being terminated, and the current request is unauthenticated.

throw [System.IdentityModel.Services.FederatedAuthenticationSessionEndingException]::New('Indicates that the sign-in session should being terminated, and the current request is unauthenticated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Services.FederatedSessionExpiredException

The exception that is thrown when a session has expired.

throw [System.IdentityModel.Services.FederatedSessionExpiredException]::New('a session has expired.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Services.FederationException

Base class for exceptions raised in WS-Federation support.

throw [System.IdentityModel.Services.FederationException]::New('Base class for exceptions raised in WS-Federation support.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Services.WSFederationMessageException

The exception that is thrown when an error occurs while serializing or deserializing a WS-Federation message.

throw [System.IdentityModel.Services.WSFederationMessageException]::New('an error occurs while serializing or deserializing a WS-Federation message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens

System.IdentityModel.Tokens.AudienceUriValidationFailedException

The exception that is thrown when an incoming security token fails Audience URI validation.

throw [System.IdentityModel.Tokens.AudienceUriValidationFailedException]::New('an incoming security token fails Audience URI validation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.EncryptedTokenDecryptionFailedException

The exception that is thrown when an error occurs while processing an encrypted security token.

throw [System.IdentityModel.Tokens.EncryptedTokenDecryptionFailedException]::New('an error occurs while processing an encrypted security token.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.SecurityTokenException

The exception that is thrown when a problem occurs while processing a security token.

throw [System.IdentityModel.Tokens.SecurityTokenException]::New('a problem occurs while processing a security token.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.SecurityTokenExpiredException

The exception that is thrown when a security token that has an expiration time in the past is received.

throw [System.IdentityModel.Tokens.SecurityTokenExpiredException]::New('a security token that has an expiration time in the past is received.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.SecurityTokenNotYetValidException

The exception that is thrown when a security token that has an effective time in the future is received.

throw [System.IdentityModel.Tokens.SecurityTokenNotYetValidException]::New('a security token that has an effective time in the future is received.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.SecurityTokenReplayDetectedException

The exception that is thrown when a security token that has been replayed is received.

throw [System.IdentityModel.Tokens.SecurityTokenReplayDetectedException]::New('a security token that has been replayed is received.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IdentityModel.Tokens.SecurityTokenValidationException

The exception that is thrown when a received security token is invalid.

throw [System.IdentityModel.Tokens.SecurityTokenValidationException]::New('a received security token is invalid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO

System.IO.DirectoryNotFoundException

The exception that is thrown when part of a file or directory cannot be found.

throw [System.IO.DirectoryNotFoundException]::New('part of a file or directory cannot be found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.DriveNotFoundException

The exception that is thrown when trying to access a drive or share that is not available.

throw [System.IO.DriveNotFoundException]::New('trying to access a drive or share that is not available.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.EndOfStreamException

The exception that is thrown when reading is attempted past the end of a stream.

throw [System.IO.EndOfStreamException]::New('reading is attempted past the end of a stream.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.FileFormatException

The exception that is thrown when an input file or a data stream that is supposed to conform to a certain file format specification is malformed.

throw [System.IO.FileFormatException]::New('an input file or a data stream that is supposed to conform to a certain file format specification is malformed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.FileLoadException

The exception that is thrown when a managed assembly is found but cannot be loaded.

throw [System.IO.FileLoadException]::New('a managed assembly is found but cannot be loaded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.FileNotFoundException

The exception that is thrown when an attempt to access a file that does not exist on disk fails.

throw [System.IO.FileNotFoundException]::New('an attempt to access a file that does not exist on disk fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.InternalBufferOverflowException

The exception thrown when the internal buffer overflows.

throw [System.IO.InternalBufferOverflowException]::New('the internal buffer overflows.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.InvalidDataException

The exception that is thrown when a data stream is in an invalid format.

throw [System.IO.InvalidDataException]::New('a data stream is in an invalid format.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.IOException

The exception that is thrown when an I/O error occurs.

throw [System.IO.IOException]::New('an I/O error occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.PathTooLongException

The exception that is thrown when a path or file name is longer than the system-defined maximum length.

throw [System.IO.PathTooLongException]::New('a path or file name is longer than the system-defined maximum length.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.PipeException

Thrown when an error occurs within a named pipe.

throw [System.IO.PipeException]::New('Thrown when an error occurs within a named pipe.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.IsolatedStorage

System.IO.IsolatedStorage.IsolatedStorageException

The exception that is thrown when an operation in isolated storage fails.

throw [System.IO.IsolatedStorage.IsolatedStorageException]::New('an operation in isolated storage fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.Log

System.IO.Log.ReservationNotFoundException

Represents the exception that is thrown when a specific space reservation in a System.IO.Log.LogRecordSequence is not found.

throw [System.IO.Log.ReservationNotFoundException]::New('a specific space reservation in a System.IO.Log.LogRecordSequence is not found.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.IO.Log.SequenceFullException

Represents the exception that is thrown when a sequence of log records is full.

throw [System.IO.Log.SequenceFullException]::New('a sequence of log records is full.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management

System.Management.ManagementException

Represents management exceptions.

throw [System.Management.ManagementException]::New('Represents management exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation

System.Management.Automation.ActionPreferenceStopException

throw [System.Management.Automation.ActionPreferenceStopException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ApplicationFailedException

throw [System.Management.Automation.ApplicationFailedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ArgumentTransformationMetadataException

throw [System.Management.Automation.ArgumentTransformationMetadataException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.BreakException

throw [System.Management.Automation.BreakException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.CmdletInvocationException

throw [System.Management.Automation.CmdletInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.CmdletProviderInvocationException

throw [System.Management.Automation.CmdletProviderInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.CommandNotFoundException

throw [System.Management.Automation.CommandNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ContinueException

throw [System.Management.Automation.ContinueException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.DriveNotFoundException

throw [System.Management.Automation.DriveNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ExitException

throw [System.Management.Automation.ExitException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ExtendedTypeSystemException

throw [System.Management.Automation.ExtendedTypeSystemException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.FlowControlException

throw [System.Management.Automation.FlowControlException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.GetValueException

throw [System.Management.Automation.GetValueException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.GetValueInvocationException

throw [System.Management.Automation.GetValueInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.HaltCommandException

throw [System.Management.Automation.HaltCommandException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.IncompleteParseException

throw [System.Management.Automation.IncompleteParseException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.InvalidJobStateException

throw [System.Management.Automation.InvalidJobStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.InvalidPowerShellStateException

throw [System.Management.Automation.InvalidPowerShellStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ItemNotFoundException

throw [System.Management.Automation.ItemNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.JobFailedException

throw [System.Management.Automation.JobFailedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.LoopFlowException

throw [System.Management.Automation.LoopFlowException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.MetadataException

throw [System.Management.Automation.MetadataException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.MethodException

throw [System.Management.Automation.MethodException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.MethodInvocationException

throw [System.Management.Automation.MethodInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ParameterBindingException

throw [System.Management.Automation.ParameterBindingException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ParentContainsErrorRecordException

throw [System.Management.Automation.ParentContainsErrorRecordException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ParseException

throw [System.Management.Automation.ParseException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ParsingMetadataException

throw [System.Management.Automation.ParsingMetadataException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PipelineClosedException

throw [System.Management.Automation.PipelineClosedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PipelineDepthException

throw [System.Management.Automation.PipelineDepthException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PipelineStoppedException

throw [System.Management.Automation.PipelineStoppedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PropertyNotFoundException

throw [System.Management.Automation.PropertyNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ProviderInvocationException

throw [System.Management.Automation.ProviderInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ProviderNameAmbiguousException

throw [System.Management.Automation.ProviderNameAmbiguousException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ProviderNotFoundException

throw [System.Management.Automation.ProviderNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSArgumentException

throw [System.Management.Automation.PSArgumentException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSArgumentNullException

throw [System.Management.Automation.PSArgumentNullException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSArgumentOutOfRangeException

throw [System.Management.Automation.PSArgumentOutOfRangeException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSInvalidCastException

throw [System.Management.Automation.PSInvalidCastException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSInvalidOperationException

throw [System.Management.Automation.PSInvalidOperationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSNotImplementedException

throw [System.Management.Automation.PSNotImplementedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSNotSupportedException

throw [System.Management.Automation.PSNotSupportedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSObjectDisposedException

throw [System.Management.Automation.PSObjectDisposedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.PSSecurityException

throw [System.Management.Automation.PSSecurityException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.RedirectedException

throw [System.Management.Automation.RedirectedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.RemoteException

throw [System.Management.Automation.RemoteException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.RuntimeException

throw [System.Management.Automation.RuntimeException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ScriptBlockToPowerShellNotSupportedException

throw [System.Management.Automation.ScriptBlockToPowerShellNotSupportedException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ScriptCallDepthException

throw [System.Management.Automation.ScriptCallDepthException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ScriptRequiresException

throw [System.Management.Automation.ScriptRequiresException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.SessionStateException

throw [System.Management.Automation.SessionStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.SessionStateOverflowException

throw [System.Management.Automation.SessionStateOverflowException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.SessionStateUnauthorizedAccessException

throw [System.Management.Automation.SessionStateUnauthorizedAccessException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.SetValueException

throw [System.Management.Automation.SetValueException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.SetValueInvocationException

throw [System.Management.Automation.SetValueInvocationException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.TerminateException

throw [System.Management.Automation.TerminateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.ValidationMetadataException

throw [System.Management.Automation.ValidationMetadataException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.WildcardPatternException

throw [System.Management.Automation.WildcardPatternException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Host

System.Management.Automation.Host.HostException

throw [System.Management.Automation.Host.HostException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Host.PromptingException

throw [System.Management.Automation.Host.PromptingException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Remoting

System.Management.Automation.Remoting.PSDirectException

throw [System.Management.Automation.Remoting.PSDirectException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Remoting.PSRemotingDataStructureException

throw [System.Management.Automation.Remoting.PSRemotingDataStructureException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Remoting.PSRemotingTransportException

throw [System.Management.Automation.Remoting.PSRemotingTransportException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Remoting.PSRemotingTransportRedirectException

throw [System.Management.Automation.Remoting.PSRemotingTransportRedirectException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces

System.Management.Automation.Runspaces.FormatTableLoadException

throw [System.Management.Automation.Runspaces.FormatTableLoadException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.InvalidPipelineStateException

throw [System.Management.Automation.Runspaces.InvalidPipelineStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.InvalidRunspacePoolStateException

throw [System.Management.Automation.Runspaces.InvalidRunspacePoolStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.InvalidRunspaceStateException

throw [System.Management.Automation.Runspaces.InvalidRunspaceStateException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.PSConsoleLoadException

throw [System.Management.Automation.Runspaces.PSConsoleLoadException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.PSSnapInException

throw [System.Management.Automation.Runspaces.PSSnapInException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException

throw [System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.RunspaceConfigurationTypeException

throw [System.Management.Automation.Runspaces.RunspaceConfigurationTypeException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException

throw [System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Automation.Runspaces.TypeTableLoadException

throw [System.Management.Automation.Runspaces.TypeTableLoadException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Instrumentation

System.Management.Instrumentation.InstanceNotFoundException

The exception thrown to indicate that no instances are returned by a provider.

throw [System.Management.Instrumentation.InstanceNotFoundException]::New('The exception thrown to indicate that no instances are returned by a provider.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Instrumentation.InstrumentationBaseException

Represents the base provider-related exception.

throw [System.Management.Instrumentation.InstrumentationBaseException]::New('Represents the base provider-related exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Instrumentation.InstrumentationException

Represents a provider-related exception.

throw [System.Management.Instrumentation.InstrumentationException]::New('Represents a provider-related exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Management.Instrumentation.WmiProviderInstallationException

Represents an exception to throw when WMI provider installation fails.

throw [System.Management.Instrumentation.WmiProviderInstallationException]::New('Represents an exception to throw when WMI provider installation fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Messaging

System.Messaging.MessageQueueException

The exception that is thrown if a Microsoft Message Queuing internal error occurs.

throw [System.Messaging.MessageQueueException]::New('a Microsoft Message Queuing internal error occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net

System.Net.CookieException

The exception that is thrown when an error is made adding a System.Net.Cookie to a System.Net.CookieContainer.

throw [System.Net.CookieException]::New('an error is made adding a System.Net.Cookie to a System.Net.CookieContainer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.HttpListenerException

The exception that is thrown when an error occurs processing an HTTP request.

throw [System.Net.HttpListenerException]::New('an error occurs processing an HTTP request.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.ProtocolViolationException

The exception that is thrown when an error is made while using a network protocol.

throw [System.Net.ProtocolViolationException]::New('an error is made while using a network protocol.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.WebException

The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.

throw [System.Net.WebException]::New('an error occurs while accessing the network through a pluggable protocol.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.Http

System.Net.Http.HttpRequestException

A base class for exceptions thrown by the System.Net.Http.HttpClient and System.Net.Http.HttpMessageHandler classes.

throw [System.Net.Http.HttpRequestException]::New('A base class for exceptions thrown by the System.Net.Http.HttpClient and System.Net.Http.HttpMessageHandler classes.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.Mail

System.Net.Mail.SmtpException

Represents the exception that is thrown when the System.Net.Mail.SmtpClient is not able to complete a System.Net.Mail.SmtpClient.Send or System.Net.Mail.SmtpClient.SendAsync operation.

throw [System.Net.Mail.SmtpException]::New('the System.Net.Mail.SmtpClient is not able to complete a System.Net.Mail.SmtpClient.Send or System.Net.Mail.SmtpClient.SendAsync operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.Mail.SmtpFailedRecipientException

Represents the exception that is thrown when the System.Net.Mail.SmtpClient is not able to complete a System.Net.Mail.SmtpClient.Send or System.Net.Mail.SmtpClient.SendAsync operation to a particular recipient.

throw [System.Net.Mail.SmtpFailedRecipientException]::New('the System.Net.Mail.SmtpClient is not able to complete a System.Net.Mail.SmtpClient.Send or System.Net.Mail.SmtpClient.SendAsync operation to a particular recipient.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.Mail.SmtpFailedRecipientsException

The exception that is thrown when e-mail is sent using an System.Net.Mail.SmtpClient and cannot be delivered to all recipients.

throw [System.Net.Mail.SmtpFailedRecipientsException]::New('e-mail is sent using an System.Net.Mail.SmtpClient and cannot be delivered to all recipients.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.NetworkInformation

System.Net.NetworkInformation.NetworkInformationException

The exception that is thrown when an error occurs while retrieving network information.

throw [System.Net.NetworkInformation.NetworkInformationException]::New('an error occurs while retrieving network information.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.NetworkInformation.PingException

The exception that is thrown when a System.Net.NetworkInformation.Ping.Send or System.Net.NetworkInformation.Ping.SendAsync method calls a method that throws an exception.

throw [System.Net.NetworkInformation.PingException]::New('a System.Net.NetworkInformation.Ping.Send or System.Net.NetworkInformation.Ping.SendAsync method calls a method that throws an exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.PeerToPeer

System.Net.PeerToPeer.PeerToPeerException

Represents the exceptions that are thrown when an error is raised by the Peer-to-Peer Infrastructure.

throw [System.Net.PeerToPeer.PeerToPeerException]::New('Represents the exceptions that are thrown when an error is raised by the Peer-to-Peer Infrastructure.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.Sockets

System.Net.Sockets.SocketException

The exception that is thrown when a socket error occurs.

throw [System.Net.Sockets.SocketException]::New('a socket error occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Net.WebSockets

System.Net.WebSockets.WebSocketException

Represents an exception that occurred when performing an operation on a WebSocket connection.

throw [System.Net.WebSockets.WebSocketException]::New('Represents an exception that occurred when performing an operation on a WebSocket connection.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing

System.Printing.PrintCommitAttributesException

The exception that is thrown when an error condition prevents some attributes from being committed by a System.Printing.PrintSystemObject to the actual computer, printer, or device that the object represents.

throw [System.Printing.PrintCommitAttributesException]::New('an error condition prevents some attributes from being committed by a System.Printing.PrintSystemObject to the actual computer, printer, or device that the object represents.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintingCanceledException

The exception that occurs when code attempts to access a canceled print job.

throw [System.Printing.PrintingCanceledException]::New('The exception that occurs when code attempts to access a canceled print job.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintingNotSupportedException

The exception that is thrown when a printing operation is not supported.

throw [System.Printing.PrintingNotSupportedException]::New('a printing operation is not supported.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintJobException

The exception that occurs when the print job does not run correctly.

throw [System.Printing.PrintJobException]::New('The exception that occurs when the print job does not run correctly.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintQueueException

The exception that is thrown when an error condition prevents the accessing or creation of a System.Printing.PrintQueue.

throw [System.Printing.PrintQueueException]::New('an error condition prevents the accessing or creation of a System.Printing.PrintQueue.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintServerException

The exception that occurs when an error condition prevents the accessing or creation of a System.Printing.PrintServer.

throw [System.Printing.PrintServerException]::New('The exception that occurs when an error condition prevents the accessing or creation of a System.Printing.PrintServer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Printing.PrintSystemException

The exception that occurs when an error condition prevents accessing or creating a System.Printing.PrintSystemObject.

throw [System.Printing.PrintSystemException]::New('The exception that occurs when an error condition prevents accessing or creating a System.Printing.PrintSystemObject.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection

System.Reflection.AmbiguousMatchException

The exception that is thrown when binding to a member results in more than one member matching the binding criteria. This class cannot be inherited.

throw [System.Reflection.AmbiguousMatchException]::New('binding to a member results in more than one member matching the binding criteria. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.CustomAttributeFormatException

The exception that is thrown when the binary format of a custom attribute is invalid.

throw [System.Reflection.CustomAttributeFormatException]::New('the binary format of a custom attribute is invalid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.InvalidFilterCriteriaException

The exception that is thrown in System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,System.Object) when the filter criteria is not valid for the type of filter you are using.

throw [System.Reflection.InvalidFilterCriteriaException]::New('The exception that is thrown in System.Type.FindMembers(System.Reflection.MemberTypes,System.Reflection.BindingFlags,System.Reflection.MemberFilter,System.Object) when the filter criteria is not valid for the type of filter you are using.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.ReflectionTypeLoadException

The exception that is thrown by the System.Reflection.Module.GetTypes method if any of the classes in a module cannot be loaded. This class cannot be inherited.

throw [System.Reflection.ReflectionTypeLoadException]::New('the System.Reflection.Module.GetTypes method if any of the classes in a module cannot be loaded. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.TargetException

Represents the exception that is thrown when an attempt is made to invoke an invalid target.

throw [System.Reflection.TargetException]::New('an attempt is made to invoke an invalid target.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.TargetInvocationException

The exception that is thrown by methods invoked through reflection. This class cannot be inherited.

throw [System.Reflection.TargetInvocationException]::New('methods invoked through reflection. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Reflection.TargetParameterCountException

The exception that is thrown when the number of parameters for an invocation does not match the number expected. This class cannot be inherited.

throw [System.Reflection.TargetParameterCountException]::New('the number of parameters for an invocation does not match the number expected. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Resources

System.Resources.MissingManifestResourceException

The exception that is thrown if the main assembly does not contain the resources for the neutral culture, and an appropriate satellite assembly is missing.

throw [System.Resources.MissingManifestResourceException]::New('the main assembly does not contain the resources for the neutral culture, and an appropriate satellite assembly is missing.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Resources.MissingSatelliteAssemblyException

The exception that is thrown when the satellite assembly for the resources of the default culture is missing.

throw [System.Resources.MissingSatelliteAssemblyException]::New('the satellite assembly for the resources of the default culture is missing.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.CompilerServices

System.Runtime.CompilerServices.RuntimeWrappedException

Wraps an exception that does not derive from the System.Exception class. This class cannot be inherited.

throw [System.Runtime.CompilerServices.RuntimeWrappedException]::New('Wraps an exception that does not derive from the System.Exception class. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing

System.Runtime.DurableInstancing.InstanceCollisionException

A persistence provider throws this exception when it expects an instance to be in an uninitialized state but the instance is not in that state.

throw [System.Runtime.DurableInstancing.InstanceCollisionException]::New('A persistence provider throws this exception when it expects an instance to be in an uninitialized state but the instance is not in that state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceCompleteException

A persistence provider throws this exception when it expects to find an instance in the initialized state, but finds the instance is in the completed state.

throw [System.Runtime.DurableInstancing.InstanceCompleteException]::New('A persistence provider throws this exception when it expects to find an instance in the initialized state, but finds the instance is in the completed state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceHandleConflictException

A persistence provider throws this exception when it tries to acquire write access to an instance by binding an instance handle to an instance lock, when an instance handle with write access to that instance already exists.

throw [System.Runtime.DurableInstancing.InstanceHandleConflictException]::New('A persistence provider throws this exception when it tries to acquire write access to an instance by binding an instance handle to an instance lock, when an instance handle with write access to that instance already exists.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceKeyCollisionException

A persistence provider throws this exception when it expects to find an instance key in the unassociated state, but finds the key in a different state.

throw [System.Runtime.DurableInstancing.InstanceKeyCollisionException]::New('A persistence provider throws this exception when it expects to find an instance key in the unassociated state, but finds the key in a different state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceKeyCompleteException

A persistence provider throws this exception when it expects to find an instance key in the associated state but finds the key in the completed state.

throw [System.Runtime.DurableInstancing.InstanceKeyCompleteException]::New('A persistence provider throws this exception when it expects to find an instance key in the associated state but finds the key in the completed state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceKeyNotReadyException

A persistence provider throws this exception when it expects to find an instance key in the associated state, but finds the key in the unassociated state.

throw [System.Runtime.DurableInstancing.InstanceKeyNotReadyException]::New('A persistence provider throws this exception when it expects to find an instance key in the associated state, but finds the key in the unassociated state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceLockedException

A persistence provider throws this exception when it is unable to acquire a lock on an instance because the instance is already locked by another owner.

throw [System.Runtime.DurableInstancing.InstanceLockedException]::New('A persistence provider throws this exception when it is unable to acquire a lock on an instance because the instance is already locked by another owner.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceLockLostException

A persistence provider throws this exception when it cannot perform the command because the lock on the instance does not match the lock associated with the instance handle against which the command was executed. Either the owner or the version does not match.

throw [System.Runtime.DurableInstancing.InstanceLockLostException]::New('A persistence provider throws this exception when it cannot perform the command because the lock on the instance does not match the lock associated with the instance handle against which the command was executed. Either the owner or the version does not match.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceNotReadyException

A persistence provider throws this exception when it expects to find an instance in an initialized state, but finds the instance in an uninitialized state.

throw [System.Runtime.DurableInstancing.InstanceNotReadyException]::New('A persistence provider throws this exception when it expects to find an instance in an initialized state, but finds the instance in an uninitialized state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstanceOwnerException

A persistence provider throws this exception when the instance owner bound to the instance handle has become invalid.

throw [System.Runtime.DurableInstancing.InstanceOwnerException]::New('A persistence provider throws this exception when the instance owner bound to the instance handle has become invalid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstancePersistenceCommandException

A persistence provider throws this exception when an error occurs while processing a persistence command. The persistence provider may also free the instance handle against which the command was executed if the error would extend to future uses of the instance handle.

throw [System.Runtime.DurableInstancing.InstancePersistenceCommandException]::New('A persistence provider throws this exception when an error occurs while processing a persistence command. The persistence provider may also free the instance handle against which the command was executed if the error would extend to future uses of the instance handle.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.DurableInstancing.InstancePersistenceException

Base class for all the persistence related exception classes. The System.Runtime.DurableInstancing.InstanceOwnerException and the System.Runtime.DurableInstancing.InstancePersistenceCommandException are derived classes of this class.

throw [System.Runtime.DurableInstancing.InstancePersistenceException]::New('Base class for all the persistence related exception classes. The System.Runtime.DurableInstancing.InstanceOwnerException and the System.Runtime.DurableInstancing.InstancePersistenceCommandException are derived classes of this class.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices

System.Runtime.InteropServices._Exception

Exposes the public members of the System.Exception class to unmanaged code.

throw [System.Runtime.InteropServices._Exception]::New('Exposes the public members of the System.Exception class to unmanaged code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.COMException

The exception that is thrown when an unrecognized HRESULT is returned from a COM method call.

throw [System.Runtime.InteropServices.COMException]::New('an unrecognized HRESULT is returned from a COM method call.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.ExternalException

The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.

throw [System.Runtime.InteropServices.ExternalException]::New('The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.InvalidComObjectException

The exception thrown when an invalid COM object is used.

throw [System.Runtime.InteropServices.InvalidComObjectException]::New('an invalid COM object is used.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.InvalidOleVariantTypeException

The exception thrown by the marshaler when it encounters an argument of a variant type that can not be marshaled to managed code.

throw [System.Runtime.InteropServices.InvalidOleVariantTypeException]::New('the marshaler when it encounters an argument of a variant type that can not be marshaled to managed code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.MarshalDirectiveException

The exception that is thrown by the marshaler when it encounters a System.Runtime.InteropServices.MarshalAsAttribute it does not support.

throw [System.Runtime.InteropServices.MarshalDirectiveException]::New('the marshaler when it encounters a System.Runtime.InteropServices.MarshalAsAttribute it does not support.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.SafeArrayRankMismatchException

The exception thrown when the rank of an incoming SAFEARRAY does not match the rank specified in the managed signature.

throw [System.Runtime.InteropServices.SafeArrayRankMismatchException]::New('the rank of an incoming SAFEARRAY does not match the rank specified in the managed signature.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.SafeArrayTypeMismatchException

The exception thrown when the type of the incoming SAFEARRAY does not match the type specified in the managed signature.

throw [System.Runtime.InteropServices.SafeArrayTypeMismatchException]::New('the type of the incoming SAFEARRAY does not match the type specified in the managed signature.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.InteropServices.SEHException

Represents structured exception handling (SEH) errors.

throw [System.Runtime.InteropServices.SEHException]::New('Represents structured exception handling (SEH) errors.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Remoting

System.Runtime.Remoting.RemotingException

The exception that is thrown when something has gone wrong during remoting.

throw [System.Runtime.Remoting.RemotingException]::New('something has gone wrong during remoting.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Remoting.RemotingTimeoutException

The exception that is thrown when the server or the client cannot be reached for a previously specified period of time.

throw [System.Runtime.Remoting.RemotingTimeoutException]::New('the server or the client cannot be reached for a previously specified period of time.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Remoting.ServerException

The exception that is thrown to communicate errors to the client when the client connects to non-.NET Framework applications that cannot throw exceptions.

throw [System.Runtime.Remoting.ServerException]::New('The exception that is thrown to communicate errors to the client when the client connects to non-.NET Framework applications that cannot throw exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Remoting.MetadataServices

System.Runtime.Remoting.MetadataServices.SUDSGeneratorException

The exception that is thrown if an error occurs during the generation of Web Services Description Language (WSDL).

throw [System.Runtime.Remoting.MetadataServices.SUDSGeneratorException]::New('an error occurs during the generation of Web Services Description Language (WSDL).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Remoting.MetadataServices.SUDSParserException

The exception that is thrown if an error occurs during parsing of the Web Services Description Language (WSDL).

throw [System.Runtime.Remoting.MetadataServices.SUDSParserException]::New('an error occurs during parsing of the Web Services Description Language (WSDL).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Serialization

System.Runtime.Serialization.InvalidDataContractException

The exception that is thrown when the System.Runtime.Serialization.DataContractSerializer or System.Runtime.Serialization.NetDataContractSerializer encounters an invalid data contract during serialization and deserialization.

throw [System.Runtime.Serialization.InvalidDataContractException]::New('the System.Runtime.Serialization.DataContractSerializer or System.Runtime.Serialization.NetDataContractSerializer encounters an invalid data contract during serialization and deserialization.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Runtime.Serialization.SerializationException

The exception thrown when an error occurs during serialization or deserialization.

throw [System.Runtime.Serialization.SerializationException]::New('an error occurs during serialization or deserialization.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security

System.Security.HostProtectionException

The exception that is thrown when a denied host resource is detected.

throw [System.Security.HostProtectionException]::New('a denied host resource is detected.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.SecurityException

The exception that is thrown when a security error is detected.

throw [System.Security.SecurityException]::New('a security error is detected.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.VerificationException

The exception that is thrown when the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.

throw [System.Security.VerificationException]::New('the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.XmlSyntaxException

The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.

throw [System.Security.XmlSyntaxException]::New('there is a syntax error in XML parsing. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.AccessControl

System.Security.AccessControl.PrivilegeNotHeldException

The exception that is thrown when a method in the System.Security.AccessControl namespace attempts to enable a privilege that it does not have.

throw [System.Security.AccessControl.PrivilegeNotHeldException]::New('a method in the System.Security.AccessControl namespace attempts to enable a privilege that it does not have.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Authentication

System.Security.Authentication.AuthenticationException

The exception that is thrown when authentication fails for an authentication stream.

throw [System.Security.Authentication.AuthenticationException]::New('authentication fails for an authentication stream.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Authentication.InvalidCredentialException

The exception that is thrown when authentication fails for an authentication stream and cannot be retried.

throw [System.Security.Authentication.InvalidCredentialException]::New('authentication fails for an authentication stream and cannot be retried.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Cryptography

System.Security.Cryptography.CryptographicException

The exception that is thrown when an error occurs during a cryptographic operation.

throw [System.Security.Cryptography.CryptographicException]::New('an error occurs during a cryptographic operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Cryptography.CryptographicUnexpectedOperationException

The exception that is thrown when an unexpected operation occurs during a cryptographic operation.

throw [System.Security.Cryptography.CryptographicUnexpectedOperationException]::New('an unexpected operation occurs during a cryptographic operation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Policy

System.Security.Policy.PolicyException

The exception that is thrown when policy forbids code to run.

throw [System.Security.Policy.PolicyException]::New('policy forbids code to run.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.Principal

System.Security.Principal.IdentityNotMappedException

Represents an exception for a principal whose identity could not be mapped to a known identity.

throw [System.Security.Principal.IdentityNotMappedException]::New('Represents an exception for a principal whose identity could not be mapped to a known identity.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Security.RightsManagement

System.Security.RightsManagement.RightsManagementException

Represents an error condition when a rights management operation cannot complete successfully.

throw [System.Security.RightsManagement.RightsManagementException]::New('Represents an error condition when a rights management operation cannot complete successfully.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel

System.ServiceModel.ActionNotSupportedException

This exception is typically thrown on the client when the action related to the operation invoked does not match any action of operations in the server.

throw [System.ServiceModel.ActionNotSupportedException]::New('This exception is typically thrown on the client when the action related to the operation invoked does not match any action of operations in the server.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.AddressAccessDeniedException

The exception that is thrown when access to the address is denied.

throw [System.ServiceModel.AddressAccessDeniedException]::New('access to the address is denied.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.AddressAlreadyInUseException

The exception that is thrown when an address is unavailable because it is already in use.

throw [System.ServiceModel.AddressAlreadyInUseException]::New('an address is unavailable because it is already in use.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.ChannelTerminatedException

This exception is typically thrown on the client when a channel is terminated due to server closing the associated connection.

throw [System.ServiceModel.ChannelTerminatedException]::New('This exception is typically thrown on the client when a channel is terminated due to server closing the associated connection.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.CommunicationException

Represents a communication error in either the service or client application.

throw [System.ServiceModel.CommunicationException]::New('Represents a communication error in either the service or client application.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.CommunicationObjectAbortedException

The exception that is thrown when the call is to an System.ServiceModel.ICommunicationObject object that has aborted.

throw [System.ServiceModel.CommunicationObjectAbortedException]::New('the call is to an System.ServiceModel.ICommunicationObject object that has aborted.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.CommunicationObjectFaultedException

The exception that is thrown when a call is made to a communication object that has faulted.

throw [System.ServiceModel.CommunicationObjectFaultedException]::New('a call is made to a communication object that has faulted.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.EndpointNotFoundException

The exception that is thrown when a remote endpoint could not be found or reached.

throw [System.ServiceModel.EndpointNotFoundException]::New('a remote endpoint could not be found or reached.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.FaultException

Represents a SOAP fault.

throw [System.ServiceModel.FaultException]::New('Represents a SOAP fault.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.InvalidMessageContractException

Represents a message contract that is not valid.

throw [System.ServiceModel.InvalidMessageContractException]::New('Represents a message contract that is not valid.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.MessageHeaderException

The exception that is thrown when the expectations regarding headers of a SOAP message are not satisfied when the message is processed.

throw [System.ServiceModel.MessageHeaderException]::New('the expectations regarding headers of a SOAP message are not satisfied when the message is processed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.MsmqException

Encapsulates errors returned by Message Queuing (MSMQ). This exception is thrown by the Message Queuing transport and the Message Queuing integration channel.

throw [System.ServiceModel.MsmqException]::New('Encapsulates errors returned by Message Queuing (MSMQ). This exception is thrown by the Message Queuing transport and the Message Queuing integration channel.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.MsmqPoisonMessageException

Encapsulates the exception that is thrown when the channel detects that the message is a poison message.

throw [System.ServiceModel.MsmqPoisonMessageException]::New('Encapsulates the channel detects that the message is a poison message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.PoisonMessageException

An exception that is thrown when the message is deemed poison. A message is poisoned if it fails repeated attempts to deliver the message.

throw [System.ServiceModel.PoisonMessageException]::New('An exception that is thrown when the message is deemed poison. A message is poisoned if it fails repeated attempts to deliver the message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.ProtocolException

The exception seen on the client that is thrown when communication with the remote party is impossible due to mismatched data transfer protocols.

throw [System.ServiceModel.ProtocolException]::New('The exception seen on the client that is thrown when communication with the remote party is impossible due to mismatched data transfer protocols.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.QuotaExceededException

The exception that is thrown when a message quota has been exceeded.

throw [System.ServiceModel.QuotaExceededException]::New('a message quota has been exceeded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.ServerTooBusyException

The exception that is thrown when a server is too busy to accept a message.

throw [System.ServiceModel.ServerTooBusyException]::New('a server is too busy to accept a message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.ServiceActivationException

The exception that is thrown when a service fails to activate.

throw [System.ServiceModel.ServiceActivationException]::New('a service fails to activate.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Channels

System.ServiceModel.Channels.InvalidChannelBindingException

The exception that is thrown when the binding specified is not consistent with the contract requirements for the service.

throw [System.ServiceModel.Channels.InvalidChannelBindingException]::New('the binding specified is not consistent with the contract requirements for the service.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Channels.RedirectionException

Represents an error that occurs in redirection processing.

throw [System.ServiceModel.Channels.RedirectionException]::New('Represents an error that occurs in redirection processing.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Channels.RetryException

Represents a retry exception that can be used by a messaging host such as System.ServiceModel.Activities,WorkflowServiceHost to communicate any cancellation of an attempted operation to the client.

throw [System.ServiceModel.Channels.RetryException]::New('Represents a retry exception that can be used by a messaging host such as System.ServiceModel.Activities,WorkflowServiceHost to communicate any cancellation of an attempted operation to the client.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher

System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException

The exception that is thrown when a filter or filter table attempts to access the body of an unbuffered message.

throw [System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException]::New('a filter or filter table attempts to access the body of an unbuffered message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher.InvalidBodyAccessException

An abstract base class for the exceptions that are thrown if an attempt is made to access the body of a message when it is not allowed.

throw [System.ServiceModel.Dispatcher.InvalidBodyAccessException]::New('An abstract base class for the exceptions that are thrown if an attempt is made to access the body of a message when it is not allowed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher.MessageFilterException

The base class for the exceptions that are thrown when the quota of nodes inspected by a filter is exceeded.

throw [System.ServiceModel.Dispatcher.MessageFilterException]::New('The base class for the exceptions that are thrown when the quota of nodes inspected by a filter is exceeded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher.MultipleFilterMatchesException

The exception that is thrown when multiple filters match, but only one was expected.

throw [System.ServiceModel.Dispatcher.MultipleFilterMatchesException]::New('multiple filters match, but only one was expected.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher.NavigatorInvalidBodyAccessException

The exception that is thrown when an System.Xml.XPath.XPathNavigator is directed to examine the body of an unbuffered message.

throw [System.ServiceModel.Dispatcher.NavigatorInvalidBodyAccessException]::New('an System.Xml.XPath.XPathNavigator is directed to examine the body of an unbuffered message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Dispatcher.XPathNavigatorException

The exception that is thrown when the quota of nodes allowed to be inspected by an XPathNavigator is exceeded.

throw [System.ServiceModel.Dispatcher.XPathNavigatorException]::New('the quota of nodes allowed to be inspected by an XPathNavigator is exceeded.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Persistence

System.ServiceModel.Persistence.InstanceLockException

This exception is intended for use by classes that inherit from System.ServiceModel.Persistence.LockingPersistenceProvider when the operation cannot be performed because of the state of the instance lock.

throw [System.ServiceModel.Persistence.InstanceLockException]::New('This exception is intended for use by classes that inherit from System.ServiceModel.Persistence.LockingPersistenceProvider when the operation cannot be performed because of the state of the instance lock.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Persistence.InstanceNotFoundException

The exception that is thrown under the following circumstances: an operation is performed on a durable service instance that has been marked for completion, or a persistence provider created by a System.ServiceModel.Persistence.SqlPersistenceProviderFactory attempts to lock, unlock, or otherwise process state data that is not found in the database.

throw [System.ServiceModel.Persistence.InstanceNotFoundException]::New('The exception that is thrown under the following circumstances: an operation is performed on a durable service instance that has been marked for completion, or a persistence provider created by a System.ServiceModel.Persistence.SqlPersistenceProviderFactory attempts to lock, unlock, or otherwise process state data that is not found in the database.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Persistence.PersistenceException

This exception is thrown by a System.ServiceModel.Persistence.SqlPersistenceProviderFactory when general connectivity errors are encountered.

throw [System.ServiceModel.Persistence.PersistenceException]::New('This exception is thrown by a System.ServiceModel.Persistence.SqlPersistenceProviderFactory when general connectivity errors are encountered.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Security

System.ServiceModel.Security.ExpiredSecurityTokenException

Exception thrown when a CardSpace security token expires.

throw [System.ServiceModel.Security.ExpiredSecurityTokenException]::New('Exception thrown when a CardSpace security token expires.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Security.MessageSecurityException

Represents an exception that occurred when there is something wrong with the security applied on a message.

throw [System.ServiceModel.Security.MessageSecurityException]::New('Represents an exception that occurred when there is something wrong with the security applied on a message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Security.SecurityAccessDeniedException

Represents the security exception that is thrown when a security authorization request fails.

throw [System.ServiceModel.Security.SecurityAccessDeniedException]::New('Represents the security exception that is thrown when a security authorization request fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Security.SecurityNegotiationException

Indicates that an error occurred while negotiating the security context for a message.

throw [System.ServiceModel.Security.SecurityNegotiationException]::New('Indicates that an error occurred while negotiating the security context for a message.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceModel.Web

System.ServiceModel.Web.WebFaultException

Represents a fault that can have an associated HTTP status code.

throw [System.ServiceModel.Web.WebFaultException]::New('Represents a fault that can have an associated HTTP status code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.ServiceProcess

System.ServiceProcess.TimeoutException

The exception that is thrown when a specified timeout has expired.

throw [System.ServiceProcess.TimeoutException]::New('a specified timeout has expired.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Text

System.Text.DecoderFallbackException

The exception that is thrown when a decoder fallback operation fails. This class cannot be inherited.

throw [System.Text.DecoderFallbackException]::New('a decoder fallback operation fails. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Text.EncoderFallbackException

The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited.

throw [System.Text.EncoderFallbackException]::New('an encoder fallback operation fails. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Text.RegularExpressions

System.Text.RegularExpressions.RegexMatchTimeoutException

The exception that is thrown when the execution time of a regular expression pattern-matching method exceeds its time-out interval.

throw [System.Text.RegularExpressions.RegexMatchTimeoutException]::New('the execution time of a regular expression pattern-matching method exceeds its time-out interval.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading

System.Threading.AbandonedMutexException

The exception that is thrown when one thread acquires a System.Threading.Mutex object that another thread has abandoned by exiting without releasing it.

throw [System.Threading.AbandonedMutexException]::New('one thread acquires a System.Threading.Mutex object that another thread has abandoned by exiting without releasing it.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.BarrierPostPhaseException

The exception that is thrown when the post-phase action of a System.Threading.Barrier fails

throw [System.Threading.BarrierPostPhaseException]::New('the post-phase action of a System.Threading.Barrier fails')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.LockRecursionException

The exception that is thrown when recursive entry into a lock is not compatible with the recursion policy for the lock.

throw [System.Threading.LockRecursionException]::New('recursive entry into a lock is not compatible with the recursion policy for the lock.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.SemaphoreFullException

The exception that is thrown when the System.Threading.Semaphore.Release method is called on a semaphore whose count is already at the maximum.

throw [System.Threading.SemaphoreFullException]::New('the System.Threading.Semaphore.Release method is called on a semaphore whose count is already at the maximum.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.SynchronizationLockException

The exception that is thrown when a method requires the caller to own the lock on a given Monitor, and the method is invoked by a caller that does not own that lock.

throw [System.Threading.SynchronizationLockException]::New('a method requires the caller to own the lock on a given Monitor, and the method is invoked by a caller that does not own that lock.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.ThreadAbortException

The exception that is thrown when a call is made to the System.Threading.Thread.Abort(System.Object) method. This class cannot be inherited.

throw [System.Threading.ThreadAbortException]::New('a call is made to the System.Threading.Thread.Abort(System.Object) method. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.ThreadInterruptedException

The exception that is thrown when a System.Threading.Thread is interrupted while it is in a waiting state.

throw [System.Threading.ThreadInterruptedException]::New('a System.Threading.Thread is interrupted while it is in a waiting state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.ThreadStartException

The exception that is thrown when a failure occurs in a managed thread after the underlying operating system thread has been started, but before the thread is ready to execute user code.

throw [System.Threading.ThreadStartException]::New('a failure occurs in a managed thread after the underlying operating system thread has been started, but before the thread is ready to execute user code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.ThreadStateException

The exception that is thrown when a System.Threading.Thread is in an invalid System.Threading.Thread.ThreadState for the method call.

throw [System.Threading.ThreadStateException]::New('a System.Threading.Thread is in an invalid System.Threading.Thread.ThreadState for the method call.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.WaitHandleCannotBeOpenedException

The exception that is thrown when an attempt is made to open a system mutex or semaphore that does not exist.

throw [System.Threading.WaitHandleCannotBeOpenedException]::New('an attempt is made to open a system mutex or semaphore that does not exist.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.Tasks

System.Threading.Tasks.TaskCanceledException

Represents an exception used to communicate task cancellation.

throw [System.Threading.Tasks.TaskCanceledException]::New('Represents an exception used to communicate task cancellation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Threading.Tasks.TaskSchedulerException

Represents an exception used to communicate an invalid operation by a System.Threading.Tasks.TaskScheduler.

throw [System.Threading.Tasks.TaskSchedulerException]::New('Represents an exception used to communicate an invalid operation by a System.Threading.Tasks.TaskScheduler.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Transactions

System.Transactions.TransactionAbortedException

The exception that is thrown when an operation is attempted on a transaction that has already been rolled back, or an attempt is made to commit the transaction and the transaction aborts.

throw [System.Transactions.TransactionAbortedException]::New('an operation is attempted on a transaction that has already been rolled back, or an attempt is made to commit the transaction and the transaction aborts.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Transactions.TransactionException

The exception that is thrown when you attempt to do work on a transaction that cannot accept new work.

throw [System.Transactions.TransactionException]::New('you attempt to do work on a transaction that cannot accept new work.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Transactions.TransactionInDoubtException

The exception that is thrown when an operation is attempted on a transaction that is in doubt, or an attempt is made to commit the transaction and the transaction becomes InDoubt.

throw [System.Transactions.TransactionInDoubtException]::New('an operation is attempted on a transaction that is in doubt, or an attempt is made to commit the transaction and the transaction becomes InDoubt.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Transactions.TransactionManagerCommunicationException

The exception that is thrown when a resource manager cannot communicate with the transaction manager.

throw [System.Transactions.TransactionManagerCommunicationException]::New('a resource manager cannot communicate with the transaction manager.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Transactions.TransactionPromotionException

The exception that is thrown when a promotion fails.

throw [System.Transactions.TransactionPromotionException]::New('a promotion fails.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web

System.Web.HttpCompileException

The exception that is thrown when a compiler error occurs.

throw [System.Web.HttpCompileException]::New('a compiler error occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.HttpException

Describes an exception that occurred during the processing of HTTP requests.

throw [System.Web.HttpException]::New('Describes an exception that occurred during the processing of HTTP requests.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.HttpParseException

The exception that is thrown when a parse error occurs.

throw [System.Web.HttpParseException]::New('a parse error occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.HttpRequestValidationException

The exception that is thrown when a potentially malicious input string is received from the client as part of the request data. This class cannot be inherited.

throw [System.Web.HttpRequestValidationException]::New('a potentially malicious input string is received from the client as part of the request data. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.HttpUnhandledException

The exception that is thrown when a generic exception occurs.

throw [System.Web.HttpUnhandledException]::New('a generic exception occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Caching

System.Web.Caching.DatabaseNotEnabledForNotificationException

The exception that is thrown when a SQL Server database is not enabled to support dependencies associated with the System.Web.Caching.SqlCacheDependency class. This class cannot be inherited.

throw [System.Web.Caching.DatabaseNotEnabledForNotificationException]::New('a SQL Server database is not enabled to support dependencies associated with the System.Web.Caching.SqlCacheDependency class. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Caching.TableNotEnabledForNotificationException

The exception that is thrown when a System.Web.Caching.SqlCacheDependency class is used against a database table that is not enabled for change notifications.

throw [System.Web.Caching.TableNotEnabledForNotificationException]::New('a System.Web.Caching.SqlCacheDependency class is used against a database table that is not enabled for change notifications.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.DynamicData

System.Web.DynamicData.IDynamicValidatorException

Represents an interface implemented by Dynamic Data Exception classes.

throw [System.Web.DynamicData.IDynamicValidatorException]::New('Represents an interface implemented by Dynamic Data Exception classes.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Management

System.Web.Management.SqlExecutionException

Defines a class for SQL execution exceptions in the System.Web.Management namespace.

throw [System.Web.Management.SqlExecutionException]::New('Defines a class for SQL execution exceptions in the System.Web.Management namespace.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Query.Dynamic

System.Web.Query.Dynamic.ParseException

Represents errors that occur when a System.Web.UI.WebControls.LinqDataSource control parses values to create a query.

throw [System.Web.Query.Dynamic.ParseException]::New('Represents errors that occur when a System.Web.UI.WebControls.LinqDataSource control parses values to create a query.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Security

System.Web.Security.MembershipCreateUserException

The exception that is thrown when a user is not successfully created by a membership provider.

throw [System.Web.Security.MembershipCreateUserException]::New('a user is not successfully created by a membership provider.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Security.MembershipPasswordException

The exception that is thrown when a password cannot be retrieved from the password store.

throw [System.Web.Security.MembershipPasswordException]::New('a password cannot be retrieved from the password store.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Services.Protocols

System.Web.Services.Protocols.SoapException

Represents the exception that is thrown when an XML Web service method is called over SOAP and an exception occurs.

throw [System.Web.Services.Protocols.SoapException]::New('an XML Web service method is called over SOAP and an exception occurs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.Services.Protocols.SoapHeaderException

The SOAP representation of a server error.

throw [System.Web.Services.Protocols.SoapHeaderException]::New('The SOAP representation of a server error.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.UI

System.Web.UI.ViewStateException

Represents the exception that is thrown when the view state cannot be loaded or validated. This class cannot be inherited.

throw [System.Web.UI.ViewStateException]::New('the view state cannot be loaded or validated. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.UI.WebControls

System.Web.UI.WebControls.EntityDataSourceValidationException

Represents errors that occur when validating properties of a dynamic data source.

throw [System.Web.UI.WebControls.EntityDataSourceValidationException]::New('Represents errors that occur when validating properties of a dynamic data source.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Web.UI.WebControls.LinqDataSourceValidationException

Describes an exception that occurred during validation of new or modified values before values are inserted, updated, or deleted by a System.Web.UI.WebControls.LinqDataSource control.

throw [System.Web.UI.WebControls.LinqDataSourceValidationException]::New('Describes an exception that occurred during validation of new or modified values before values are inserted, updated, or deleted by a System.Web.UI.WebControls.LinqDataSource control.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows

System.Windows.ResourceReferenceKeyNotFoundException

The exception that is thrown when a resource reference key cannot be found during parsing or serialization of markup extension resources.

throw [System.Windows.ResourceReferenceKeyNotFoundException]::New('a resource reference key cannot be found during parsing or serialization of markup extension resources.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Automation

System.Windows.Automation.ElementNotAvailableException

Contains information about the exception that is raised when an attempt is made to access an UI Automation element corresponding to a part of the user interface that is no longer available.

throw [System.Windows.Automation.ElementNotAvailableException]::New('Contains information about the exception that is raised when an attempt is made to access an UI Automation element corresponding to a part of the user interface that is no longer available.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Automation.ElementNotEnabledException

Contains information about the exception that is raised when an attempt is made to manipulate a control that is not enabled.

throw [System.Windows.Automation.ElementNotEnabledException]::New('Contains information about the exception that is raised when an attempt is made to manipulate a control that is not enabled.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Automation.NoClickablePointException

Contains information about the exception that is raised when System.Windows.Automation.AutomationElement.GetClickablePoint is called on a UI Automation element that has no clickable point.

throw [System.Windows.Automation.NoClickablePointException]::New('Contains information about the exception that is raised when System.Windows.Automation.AutomationElement.GetClickablePoint is called on a UI Automation element that has no clickable point.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Automation.ProxyAssemblyNotLoadedException

Contains information about an exception that is raised when there is a problem loading an assembly that contains client-side providers

throw [System.Windows.Automation.ProxyAssemblyNotLoadedException]::New('Contains information about an exception that is raised when there is a problem loading an assembly that contains client-side providers')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Controls

System.Windows.Controls.PrintDialogException

The exception that is thrown when an error condition occurs during the opening, accessing, or using of a PrintDialog.

throw [System.Windows.Controls.PrintDialogException]::New('an error condition occurs during the opening, accessing, or using of a PrintDialog.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Data

System.Windows.Data.ValueUnavailableException

The exception that is thrown by the System.Windows.Data.BindingGroup.GetValue(System.Object,System.String) method when the value is not available.

throw [System.Windows.Data.ValueUnavailableException]::New('the System.Windows.Data.BindingGroup.GetValue(System.Object,System.String) method when the value is not available.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Forms.AxHost

System.Windows.Forms.AxHost.InvalidActiveXStateException

The exception that is thrown when the ActiveX control is referenced while in an invalid state.

throw [System.Windows.Forms.AxHost.InvalidActiveXStateException]::New('the ActiveX control is referenced while in an invalid state.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Markup

System.Windows.Markup.XamlParseException

Represents the exception class for parser-specific exceptions from a WPF XAML parser. This exception is used in XAML API or WPF XAML parser operations from .NET Frameworká3.0 and .NET Frameworká3.5, or for specific use of the WPF XAML parser by calling System.Windows.Markup.XamlReader API.

throw [System.Windows.Markup.XamlParseException]::New('Represents the exception class for parser-specific exceptions from a WPF XAML parser. This exception is used in XAML API or WPF XAML parser operations from .NET Frameworká3.0 and .NET Frameworká3.5, or for specific use of the WPF XAML parser by calling System.Windows.Markup.XamlReader API.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Media

System.Windows.Media.InvalidWmpVersionException

The exception that is thrown when the installed Microsoft Windows Media Player version is not supported.á

throw [System.Windows.Media.InvalidWmpVersionException]::New('the installed Microsoft Windows Media Player version is not supported.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Media.Animation

System.Windows.Media.Animation.AnimationException

The exception that is thrown when an error occurs while animating a property.

throw [System.Windows.Media.Animation.AnimationException]::New('an error occurs while animating a property.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Xps

System.Windows.Xps.XpsException

Serves as the base class for exceptions that are thrown by the XML Paper Specification (XPS) packaging and serialization APIs.á

throw [System.Windows.Xps.XpsException]::New('Serves as the base class for exceptions that are thrown by the XML Paper Specification (XPS) packaging and serialization APIs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Xps.XpsPackagingException

The exception that is thrown when reading, writing to, registering, or accessing in some other way an System.Windows.Xps.Packaging.XpsDocument.

throw [System.Windows.Xps.XpsPackagingException]::New('reading, writing to, registering, or accessing in some other way an System.Windows.Xps.Packaging.XpsDocument.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Xps.XpsSerializationException

The exception that is thrown for XML Paper Specification (XPS) document serialization errors.á

throw [System.Windows.Xps.XpsSerializationException]::New('The exception that is thrown for XML Paper Specification (XPS) document serialization errors.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Windows.Xps.XpsWriterException

The exception that is thrown when a method of either an System.Windows.Xps.XpsDocumentWriter or a System.Windows.Xps.VisualsToXpsDocument object is called that is incompatible with the current state of the object.

throw [System.Windows.Xps.XpsWriterException]::New('a method of either an System.Windows.Xps.XpsDocumentWriter or a System.Windows.Xps.VisualsToXpsDocument object is called that is incompatible with the current state of the object.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities

System.Workflow.Activities.EventDeliveryFailedException

The exception that is thrown when an event that is raised from the host cannot be delivered to the workflow instance. Typically the event is raised from an System.Workflow.Activities.ExternalDataExchangeService on a workflow instance. This class cannot be inherited.

throw [System.Workflow.Activities.EventDeliveryFailedException]::New('an event that is raised from the host cannot be delivered to the workflow instance. Typically the event is raised from an System.Workflow.Activities.ExternalDataExchangeService on a workflow instance. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities.WorkflowAuthorizationException

The exception that is thrown when role validation fails due to a specified identity that is not contained in the System.Workflow.Activities.WorkflowRoleCollection.

throw [System.Workflow.Activities.WorkflowAuthorizationException]::New('role validation fails due to a specified identity that is not contained in the System.Workflow.Activities.WorkflowRoleCollection.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities.Rules

System.Workflow.Activities.Rules.RuleEvaluationException

Represents the base class for all exceptions caused by rule evaluation issues.

throw [System.Workflow.Activities.Rules.RuleEvaluationException]::New('Represents the base class for all exceptions caused by rule evaluation issues.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException

The exception that is thrown when attempting to apply an operator to incompatible operands when you evaluate a rule.

throw [System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException]::New('attempting to apply an operator to incompatible operands when you evaluate a rule.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities.Rules.RuleException

Represents the base class for all exceptions caused by evaluation or validation of rules.

throw [System.Workflow.Activities.Rules.RuleException]::New('Represents the base class for all exceptions caused by evaluation or validation of rules.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Activities.Rules.RuleSetValidationException

Represents the exception thrown when processing cannot continue because a rule set cannot be validated.

throw [System.Workflow.Activities.Rules.RuleSetValidationException]::New('processing cannot continue because a rule set cannot be validated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.ComponentModel

System.Workflow.ComponentModel.WorkflowTerminatedException

Represents the System.Exception that is raised when a workflow is terminated. This class cannot be inherited.

throw [System.Workflow.ComponentModel.WorkflowTerminatedException]::New('Represents the System.Exception that is raised when a workflow is terminated. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.ComponentModel.Compiler

System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException

Represents an System.Exception that occurs when a workflow does not pass validation. This class cannot be inherited.

throw [System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException]::New('Represents an System.Exception that occurs when a workflow does not pass validation. This class cannot be inherited.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.ComponentModel.Serialization

System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException

The exception that is thrown by methods that perform serialization and deserialization.

throw [System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException]::New('methods that perform serialization and deserialization.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Runtime

System.Workflow.Runtime.WorkflowOwnershipException

The exception that is thrown when the workflow runtime engine attempts to load a workflow instance that is currently loaded by another workflow runtime engine instance. Additionally, this exception is thrown when the workflow runtime engine attempts to save a workflow after the ownership timeout that was specified while loading the workflow has expired.

throw [System.Workflow.Runtime.WorkflowOwnershipException]::New('the workflow runtime engine attempts to load a workflow instance that is currently loaded by another workflow runtime engine instance. Additionally, this exception is thrown when the workflow runtime engine attempts to save a workflow after the ownership timeout that was specified while loading the workflow has expired.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Runtime.Hosting

System.Workflow.Runtime.Hosting.PersistenceException

The exception that is thrown when the persistence service cannot fulfill a request.

throw [System.Workflow.Runtime.Hosting.PersistenceException]::New('the persistence service cannot fulfill a request.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Workflow.Runtime.Tracking

System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException

The exception that is thrown when an XML document cannot be deserialized into a System.Workflow.Runtime.Tracking.TrackingProfile by a System.Workflow.Runtime.Tracking.TrackingProfileSerializer.

throw [System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException]::New('an XML document cannot be deserialized into a System.Workflow.Runtime.Tracking.TrackingProfile by a System.Workflow.Runtime.Tracking.TrackingProfileSerializer.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml

System.Xaml.XamlDuplicateMemberException

The exception that is thrown when a XAML writer attempts to write a value for a duplicate member into the same object node.

throw [System.Xaml.XamlDuplicateMemberException]::New('a XAML writer attempts to write a value for a duplicate member into the same object node.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlException

The exception that is thrown for a general XAML reader or XAML writer exception. See Remarks.

throw [System.Xaml.XamlException]::New('The exception that is thrown for a general XAML reader or XAML writer exception. See Remarks.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlInternalException

The exception that is thrown for internal inconsistencies that occur during XAML reading and XAML writing.

throw [System.Xaml.XamlInternalException]::New('The exception that is thrown for internal inconsistencies that occur during XAML reading and XAML writing.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlObjectReaderException

The exception that is thrown by several System.Xaml.XamlObjectReader internal helper APIs.

throw [System.Xaml.XamlObjectReaderException]::New('several System.Xaml.XamlObjectReader internal helper APIs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlObjectWriterException

The exception that is thrown when a XAML writer (such as the System.Xaml.XamlObjectWriter class) encounters an error while attempting to produce object graphs from a XAML node stream.

throw [System.Xaml.XamlObjectWriterException]::New('a XAML writer (such as the System.Xaml.XamlObjectWriter class) encounters an error while attempting to produce object graphs from a XAML node stream.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlParseException

The exception that is thrown when a XAML reader cannot process elements of the XAML reader source into a XAML node stream.

throw [System.Xaml.XamlParseException]::New('a XAML reader cannot process elements of the XAML reader source into a XAML node stream.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlSchemaException

The exception that is thrown when a binding system or another schema representation system for XAML reports an exception to the schema context.

throw [System.Xaml.XamlSchemaException]::New('a binding system or another schema representation system for XAML reports an exception to the schema context.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xaml.XamlXmlWriterException

The exception that is thrown by certain System.Xaml.XamlXmlWriter APIs.

throw [System.Xaml.XamlXmlWriterException]::New('certain System.Xaml.XamlXmlWriter APIs.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml

System.Xml.XmlException

Returns detailed information about the last exception.

throw [System.Xml.XmlException]::New('Returns detailed information about the last exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.Schema

System.Xml.Schema.XmlSchemaException

Returns detailed information about the schema exception.

throw [System.Xml.Schema.XmlSchemaException]::New('Returns detailed information about the schema exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.Schema.XmlSchemaInferenceException

Returns information about errors encountered by the System.Xml.Schema.XmlSchemaInference class while inferring a schema from an XML document.

throw [System.Xml.Schema.XmlSchemaInferenceException]::New('Returns information about errors encountered by the System.Xml.Schema.XmlSchemaInference class while inferring a schema from an XML document.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.Schema.XmlSchemaValidationException

Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.

throw [System.Xml.Schema.XmlSchemaValidationException]::New('XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.XPath

System.Xml.XPath.XPathException

Provides the exception thrown when an error occurs while processing an XPath expression.

throw [System.Xml.XPath.XPathException]::New('Provides an error occurs while processing an XPath expression.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.Xsl

System.Xml.Xsl.XsltCompileException

The exception that is thrown by the Load method when an error is found in the XSLT style sheet.

throw [System.Xml.Xsl.XsltCompileException]::New('the Load method when an error is found in the XSLT style sheet.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

System.Xml.Xsl.XsltException

The exception that is thrown when an error occurs while processing an XSLT transformation.

throw [System.Xml.Xsl.XsltException]::New('an error occurs while processing an XSLT transformation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.BuildEngine

Microsoft.Build.BuildEngine.InternalLoggerException

This exception is used to wrap an unhandled exception from a logger.

throw [Microsoft.Build.BuildEngine.InternalLoggerException]::New('This exception is used to wrap an unhandled exception from a logger.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.BuildEngine.InvalidProjectFileException

This exception is thrown whenever there is a problem with the user’s XML project file. The problem might be semantic or syntactical. If the problem is in the syntax, it can typically be caught by XSD validation.

throw [Microsoft.Build.BuildEngine.InvalidProjectFileException]::New('This exception is thrown whenever there is a problem with the user's XML project file. The problem might be semantic or syntactical. If the problem is in the syntax, it can typically be caught by XSD validation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException

This exception is thrown whenever there is a problem with the user’s custom toolset definition file. The problem might be semantic or syntactical. If the problem is in the syntax, it can typically be caught by XSD validation.

throw [Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException]::New('This exception is thrown whenever there is a problem with the user's custom toolset definition file. The problem might be semantic or syntactical. If the problem is in the syntax, it can typically be caught by XSD validation.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.BuildEngine.RemoteErrorException

Wraps exceptions that occur on a different node.

throw [Microsoft.Build.BuildEngine.RemoteErrorException]::New('Wraps exceptions that occur on a different node.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.Exceptions

Microsoft.Build.Exceptions.BuildAbortedException

An exception representing the case where the build was aborted by request, as opposed to being unceremoniously shut down due to another kind of error exception.

throw [Microsoft.Build.Exceptions.BuildAbortedException]::New('An exception representing the case where the build was aborted by request, as opposed to being unceremoniously shut down due to another kind of error exception.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.Exceptions.InternalLoggerException

This exception is used to wrap an unhandled exception from a logger. This exception aborts the build, and it can only be thrown by the MSBuild engine.

throw [Microsoft.Build.Exceptions.InternalLoggerException]::New('This exception is used to wrap an unhandled exception from a logger. This exception aborts the build, and it can only be thrown by the MSBuild engine.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.Exceptions.InvalidProjectFileException

This exception is thrown whenever there is a problem with the user’s XML project file. The problem might be semantic or syntactical. The latter would be of a type typically caught by XSD validation (if it was performed by the project writer).

throw [Microsoft.Build.Exceptions.InvalidProjectFileException]::New('This exception is thrown whenever there is a problem with the user's XML project file. The problem might be semantic or syntactical. The latter would be of a type typically caught by XSD validation (if it was performed by the project writer).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.Exceptions.InvalidToolsetDefinitionException

Exception subclass that ToolsetReaders should throw.

throw [Microsoft.Build.Exceptions.InvalidToolsetDefinitionException]::New('Exception subclass that ToolsetReaders should throw.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Build.Framework

Microsoft.Build.Framework.LoggerException

Allows a logger to force the build to stop in an explicit way.

throw [Microsoft.Build.Framework.LoggerException]::New('Allows a logger to force the build to stop in an explicit way.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.CSharp.RuntimeBinder

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException

Represents an error that occurs when a dynamic bind in the C# runtime binder is processed.

throw [Microsoft.CSharp.RuntimeBinder.RuntimeBinderException]::New('Represents an error that occurs when a dynamic bind in the C# runtime binder is processed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException

Represents an error that occurs when a dynamic bind in the C# runtime binder is processed.

throw [Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException]::New('Represents an error that occurs when a dynamic bind in the C# runtime binder is processed.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.JScript

Microsoft.JScript.CmdLineException

Represents errors that occur when you run the command-line compiler jsc.exe.

throw [Microsoft.JScript.CmdLineException]::New('Represents errors that occur when you run the command-line compiler jsc.exe.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.JScript.JScriptException

The exception that is thrown by JScript to notify a common language runtime (CLR) host or program that an error occurred. A Microsoft.JScript.JScriptException usually takes a Microsoft.JScript.JSError enumeration value.

throw [Microsoft.JScript.JScriptException]::New('JScript to notify a common language runtime (CLR) host or program that an error occurred. A Microsoft.JScript.JScriptException usually takes a Microsoft.JScript.JSError enumeration value.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.JScript.NoContextException

The exception that is thrown when there is no code Microsoft.JScript.Context associated with a Microsoft.JScript.JScriptException.

throw [Microsoft.JScript.NoContextException]::New('there is no code Microsoft.JScript.Context associated with a Microsoft.JScript.JScriptException.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.JScript.ParserException

This class is used by the JScript parser to represent parser exceptions.

throw [Microsoft.JScript.ParserException]::New('This class is used by the JScript parser to represent parser exceptions.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.JScript.Vsa

Microsoft.JScript.Vsa.JSVsaException

This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.

throw [Microsoft.JScript.Vsa.JSVsaException]::New('This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.Management.Infrastructure

Microsoft.Management.Infrastructure.CimException

throw [Microsoft.Management.Infrastructure.CimException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Cmdletization.Cim

Microsoft.PowerShell.Cmdletization.Cim.CimJobException

throw [Microsoft.PowerShell.Cmdletization.Cim.CimJobException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands

Microsoft.PowerShell.Commands.CertificateNotFoundException

throw [Microsoft.PowerShell.Commands.CertificateNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.CertificateProviderItemNotFoundException

throw [Microsoft.PowerShell.Commands.CertificateProviderItemNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.CertificateStoreLocationNotFoundException

throw [Microsoft.PowerShell.Commands.CertificateStoreLocationNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.CertificateStoreNotFoundException

throw [Microsoft.PowerShell.Commands.CertificateStoreNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.HelpCategoryInvalidException

throw [Microsoft.PowerShell.Commands.HelpCategoryInvalidException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.HelpNotFoundException

throw [Microsoft.PowerShell.Commands.HelpNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.ProcessCommandException

throw [Microsoft.PowerShell.Commands.ProcessCommandException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.RestartComputerTimeoutException

throw [Microsoft.PowerShell.Commands.RestartComputerTimeoutException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.ServiceCommandException

throw [Microsoft.PowerShell.Commands.ServiceCommandException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.WriteErrorException

throw [Microsoft.PowerShell.Commands.WriteErrorException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.FlashExtract

Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.FlashExtract.ProgramNotFoundException

throw [Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.FlashExtract.ProgramNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.FlashExtract.ResultNotFoundException

throw [Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.FlashExtract.ResultNotFoundException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.TemplateParsing

Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.TemplateParsing.TemplateParsingException

throw [Microsoft.PowerShell.Commands.StringManipulation.FlashExtractWrapper.TemplateParsing.TemplateParsingException]::New()
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.SqlServer.Server

Microsoft.SqlServer.Server.InvalidUdtException

Thrown when SQL Server or the ADO.NET System.Data.SqlClient provider detects an invalid user-defined type (UDT).

throw [Microsoft.SqlServer.Server.InvalidUdtException]::New('Thrown when SQL Server or the ADO.NET System.Data.SqlClient provider detects an invalid user-defined type (UDT).')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.VisualBasic.ApplicationServices

Microsoft.VisualBasic.ApplicationServices.CantStartSingleInstanceException

This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance.

throw [Microsoft.VisualBasic.ApplicationServices.CantStartSingleInstanceException]::New('This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.VisualBasic.ApplicationServices.NoStartupFormException

This exception is thrown by the Visual Basic Application Model when the Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.MainForm property has not been set.

throw [Microsoft.VisualBasic.ApplicationServices.NoStartupFormException]::New('This exception is thrown by the Visual Basic Application Model when the Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.MainForm property has not been set.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.VisualBasic.CompilerServices

Microsoft.VisualBasic.CompilerServices.InternalErrorException

The exception thrown for internal Visual Basic compiler errors.

throw [Microsoft.VisualBasic.CompilerServices.InternalErrorException]::New('The exception thrown for internal Visual Basic compiler errors.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com

Microsoft.VisualBasic.FileIO

Microsoft.VisualBasic.FileIO.MalformedLineException

The exception that is thrown when the Microsoft.VisualBasic.FileIO.TextFieldParser.ReadFields method cannot parse a row using the specified format.

throw [Microsoft.VisualBasic.FileIO.MalformedLineException]::New('the Microsoft.VisualBasic.FileIO.TextFieldParser.ReadFields method cannot parse a row using the specified format.')
docs.microsoft.com msdn.microsoft.com stackoverflow.com