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.')

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.')

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.')

System.ApplicationException

Serves as the base class for application-defined exceptions.

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

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.InvalidTimeZoneException

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

throw [System.InvalidTimeZoneException]::New('time zone information is invalid.')

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.')

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.')

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.')

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.')

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.')

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.')

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).')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.SystemException

Serves as the base class for system exceptions namespace.

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

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.')

System.TimeZoneNotFoundException

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

throw [System.TimeZoneNotFoundException]::New('a time zone cannot be found.')

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.')

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.')

System.TypeLoadException

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

throw [System.TypeLoadException]::New('type-loading failures occur.')

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.')

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.')

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.')

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.')

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.')

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.')

System.Activities.VersionMismatchException

Specifies information about a version mismatch exception.

throw [System.Activities.VersionMismatchException]::New('Specifies information about a version mismatch exception.')

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.')

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.')

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.')

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.')

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.')

Represents an instance update exception.

throw [System.Activities.DynamicUpdate.InstanceUpdateException]::New('Represents an instance update exception.')

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.')

System.Activities.Expressions

System.Activities.Expressions.LambdaSerializationException

The exception that is thrown when a XAML serialization attempt is made on a System.Activities.Expressions.LambdaValue 1 or System.Activities.Expressions.LambdaReference 1.

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.ComponentModel.InvalidEnumArgumentException

The exception thrown when using invalid arguments that are enumerators.

throw [System.ComponentModel.InvalidEnumArgumentException]::New('using invalid arguments that are enumerators.')

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.')

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.')

System.ComponentModel.Win32Exception

Throws an exception for a Win32 error code.

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

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.')

System.ComponentModel.Composition.CompositionContractMismatchException

The exception that is thrown when the underlying exported value or metadata of a System.Lazy 1 or System.Lazy 2 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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.Data.MappingException

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

throw [System.Data.MappingException]::New('mapping related service requests fail.')

System.Data.MetadataException

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

throw [System.Data.MetadataException]::New('metadata related service requests fails.')

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.')

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.')

System.Data.ObjectNotFoundException

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

throw [System.Data.ObjectNotFoundException]::New('an object is not present.')

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.')

System.Data.OptimisticConcurrencyException

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

throw [System.Data.OptimisticConcurrencyException]::New('an optimistic concurrency violation occurs.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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).')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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 <errorResponse>.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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).')

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.')

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.')

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.')

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.')

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')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.IdentityModel.Services.FederatedSessionExpiredException

The exception that is thrown when a session has expired.

throw [System.IdentityModel.Services.FederatedSessionExpiredException]::New('a session has expired.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

System.IO.InternalBufferOverflowException

The exception thrown when the internal buffer overflows.

throw [System.IO.InternalBufferOverflowException]::New('the internal buffer overflows.')

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.')

System.IO.IOException

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

throw [System.IO.IOException]::New('an I/O error occurs.')

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.')

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.')

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.')

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.')

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.')

System.Management

System.Management.ManagementException

Represents management exceptions.

throw [System.Management.ManagementException]::New('Represents management exceptions.')

System.Management.Automation

System.Management.Automation.ActionPreferenceStopException

throw [System.Management.Automation.ActionPreferenceStopException]::New()

System.Management.Automation.ApplicationFailedException

throw [System.Management.Automation.ApplicationFailedException]::New()

System.Management.Automation.ArgumentTransformationMetadataException

throw [System.Management.Automation.ArgumentTransformationMetadataException]::New()

System.Management.Automation.BreakException

throw [System.Management.Automation.BreakException]::New()

System.Management.Automation.CmdletInvocationException

throw [System.Management.Automation.CmdletInvocationException]::New()

System.Management.Automation.CmdletProviderInvocationException

throw [System.Management.Automation.CmdletProviderInvocationException]::New()

System.Management.Automation.CommandNotFoundException

throw [System.Management.Automation.CommandNotFoundException]::New()

System.Management.Automation.ContinueException

throw [System.Management.Automation.ContinueException]::New()

System.Management.Automation.DriveNotFoundException

throw [System.Management.Automation.DriveNotFoundException]::New()

System.Management.Automation.ExitException

throw [System.Management.Automation.ExitException]::New()

System.Management.Automation.ExtendedTypeSystemException

throw [System.Management.Automation.ExtendedTypeSystemException]::New()

System.Management.Automation.FlowControlException

throw [System.Management.Automation.FlowControlException]::New()

System.Management.Automation.GetValueException

throw [System.Management.Automation.GetValueException]::New()

System.Management.Automation.GetValueInvocationException

throw [System.Management.Automation.GetValueInvocationException]::New()

System.Management.Automation.HaltCommandException

throw [System.Management.Automation.HaltCommandException]::New()

System.Management.Automation.IncompleteParseException

throw [System.Management.Automation.IncompleteParseException]::New()

System.Management.Automation.InvalidJobStateException

throw [System.Management.Automation.InvalidJobStateException]::New()

System.Management.Automation.InvalidPowerShellStateException

throw [System.Management.Automation.InvalidPowerShellStateException]::New()

System.Management.Automation.ItemNotFoundException

throw [System.Management.Automation.ItemNotFoundException]::New()

System.Management.Automation.JobFailedException

throw [System.Management.Automation.JobFailedException]::New()

System.Management.Automation.LoopFlowException

throw [System.Management.Automation.LoopFlowException]::New()

System.Management.Automation.MetadataException

throw [System.Management.Automation.MetadataException]::New()

System.Management.Automation.MethodException

throw [System.Management.Automation.MethodException]::New()

System.Management.Automation.MethodInvocationException

throw [System.Management.Automation.MethodInvocationException]::New()

System.Management.Automation.ParameterBindingException

throw [System.Management.Automation.ParameterBindingException]::New()

System.Management.Automation.ParentContainsErrorRecordException

throw [System.Management.Automation.ParentContainsErrorRecordException]::New()

System.Management.Automation.ParseException

throw [System.Management.Automation.ParseException]::New()

System.Management.Automation.ParsingMetadataException

throw [System.Management.Automation.ParsingMetadataException]::New()

System.Management.Automation.PipelineClosedException

throw [System.Management.Automation.PipelineClosedException]::New()

System.Management.Automation.PipelineDepthException

throw [System.Management.Automation.PipelineDepthException]::New()

System.Management.Automation.PipelineStoppedException

throw [System.Management.Automation.PipelineStoppedException]::New()

System.Management.Automation.PropertyNotFoundException

throw [System.Management.Automation.PropertyNotFoundException]::New()

System.Management.Automation.ProviderInvocationException

throw [System.Management.Automation.ProviderInvocationException]::New()

System.Management.Automation.ProviderNameAmbiguousException

throw [System.Management.Automation.ProviderNameAmbiguousException]::New()

System.Management.Automation.ProviderNotFoundException

throw [System.Management.Automation.ProviderNotFoundException]::New()

System.Management.Automation.PSArgumentException

throw [System.Management.Automation.PSArgumentException]::New()

System.Management.Automation.PSArgumentNullException

throw [System.Management.Automation.PSArgumentNullException]::New()

System.Management.Automation.PSArgumentOutOfRangeException

throw [System.Management.Automation.PSArgumentOutOfRangeException]::New()

System.Management.Automation.PSInvalidCastException

throw [System.Management.Automation.PSInvalidCastException]::New()

System.Management.Automation.PSInvalidOperationException

throw [System.Management.Automation.PSInvalidOperationException]::New()

System.Management.Automation.PSNotImplementedException

throw [System.Management.Automation.PSNotImplementedException]::New()

System.Management.Automation.PSNotSupportedException

throw [System.Management.Automation.PSNotSupportedException]::New()

System.Management.Automation.PSObjectDisposedException

throw [System.Management.Automation.PSObjectDisposedException]::New()

System.Management.Automation.PSSecurityException

throw [System.Management.Automation.PSSecurityException]::New()

System.Management.Automation.RedirectedException

throw [System.Management.Automation.RedirectedException]::New()

System.Management.Automation.RemoteException

throw [System.Management.Automation.RemoteException]::New()

System.Management.Automation.RuntimeException

throw [System.Management.Automation.RuntimeException]::New()

System.Management.Automation.ScriptBlockToPowerShellNotSupportedException

throw [System.Management.Automation.ScriptBlockToPowerShellNotSupportedException]::New()

System.Management.Automation.ScriptCallDepthException

throw [System.Management.Automation.ScriptCallDepthException]::New()

System.Management.Automation.ScriptRequiresException

throw [System.Management.Automation.ScriptRequiresException]::New()

System.Management.Automation.SessionStateException

throw [System.Management.Automation.SessionStateException]::New()

System.Management.Automation.SessionStateOverflowException

throw [System.Management.Automation.SessionStateOverflowException]::New()

System.Management.Automation.SessionStateUnauthorizedAccessException

throw [System.Management.Automation.SessionStateUnauthorizedAccessException]::New()

System.Management.Automation.SetValueException

throw [System.Management.Automation.SetValueException]::New()

System.Management.Automation.SetValueInvocationException

throw [System.Management.Automation.SetValueInvocationException]::New()

System.Management.Automation.TerminateException

throw [System.Management.Automation.TerminateException]::New()

System.Management.Automation.ValidationMetadataException

throw [System.Management.Automation.ValidationMetadataException]::New()

System.Management.Automation.WildcardPatternException

throw [System.Management.Automation.WildcardPatternException]::New()

System.Management.Automation.Host

System.Management.Automation.Host.HostException

throw [System.Management.Automation.Host.HostException]::New()

System.Management.Automation.Host.PromptingException

throw [System.Management.Automation.Host.PromptingException]::New()

System.Management.Automation.Remoting

System.Management.Automation.Remoting.PSDirectException

throw [System.Management.Automation.Remoting.PSDirectException]::New()

System.Management.Automation.Remoting.PSRemotingDataStructureException

throw [System.Management.Automation.Remoting.PSRemotingDataStructureException]::New()

System.Management.Automation.Remoting.PSRemotingTransportException

throw [System.Management.Automation.Remoting.PSRemotingTransportException]::New()

System.Management.Automation.Remoting.PSRemotingTransportRedirectException

throw [System.Management.Automation.Remoting.PSRemotingTransportRedirectException]::New()

System.Management.Automation.Runspaces

System.Management.Automation.Runspaces.FormatTableLoadException

throw [System.Management.Automation.Runspaces.FormatTableLoadException]::New()

System.Management.Automation.Runspaces.InvalidPipelineStateException

throw [System.Management.Automation.Runspaces.InvalidPipelineStateException]::New()

System.Management.Automation.Runspaces.InvalidRunspacePoolStateException

throw [System.Management.Automation.Runspaces.InvalidRunspacePoolStateException]::New()

System.Management.Automation.Runspaces.InvalidRunspaceStateException

throw [System.Management.Automation.Runspaces.InvalidRunspaceStateException]::New()

System.Management.Automation.Runspaces.PSConsoleLoadException

throw [System.Management.Automation.Runspaces.PSConsoleLoadException]::New()

System.Management.Automation.Runspaces.PSSnapInException

throw [System.Management.Automation.Runspaces.PSSnapInException]::New()

System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException

throw [System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException]::New()

System.Management.Automation.Runspaces.RunspaceConfigurationTypeException

throw [System.Management.Automation.Runspaces.RunspaceConfigurationTypeException]::New()

System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException

throw [System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException]::New()

System.Management.Automation.Runspaces.TypeTableLoadException

throw [System.Management.Automation.Runspaces.TypeTableLoadException]::New()

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.')

System.Management.Instrumentation.InstrumentationBaseException

Represents the base provider-related exception.

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

System.Management.Instrumentation.InstrumentationException

Represents a provider-related exception.

throw [System.Management.Instrumentation.InstrumentationException]::New('Represents a provider-related exception.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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.')

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