Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ErrorCategory Enumeration

Errors reported by Monad will be in one of these categories.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ErrorCategory

public enum class ErrorCategory
public enum ErrorCategory
public enum ErrorCategory

Member nameDescription
AuthenticationErrorCould not authenticate the user to the service. Could mean that the credentials are invalid or the authentication system is not functioning properly.
CloseErrorAn error that occurs during closing.
ConnectionErrorThe operation depends on a network connection that cannot be established or maintained.
DeadlockDetectedAn error that occurs when a deadlock is detected.
DeviceErrorAn error that occurs when a device reports an error.
FromStdErrA non-Monad command reported an error to its STDERR pipe.
InvalidArgumentAn error that occurs when an argument that is not valid is specified.
InvalidDataAn error that occurs when data that is not valid is specified.
InvalidOperationAn error that occurs when an operation that is not valid is requested.
InvalidResultAn error that occurs when a result that is not valid is returned.
InvalidTypeAn error that occurs when a .NET Framework type that is not valid is specified.
LimitsExceededInternal limits prevent the operation from being executed.
MetadataErrorAn error that occurs when metadata contains an error.
NotEnabledThe operation attempted to use functionality that is currently disabled.
NotImplementedAn error that occurs when a referenced application programming interface (API) is not implemented.
NotInstalledAn error that occurs when an item is not installed.
NotSpecifiedNo error category is specified, or the error category is invalid.
ObjectNotFoundObject cannot be found (file, directory, computer, system resource, etc.)
OpenErrorAn error that occurs during opening.
OperationStoppedAn error that occurs when an operation has stopped. For example, the user interrupts the operation.
OperationTimeoutAn error that occurs when an operation has exceeded its timeout limit.
ParserErrorAn error that occurs when a parser encounters an error.
PermissionDeniedAn error that occurs when an operation is not permitted.
ProtocolErrorThe contract of a protocol is not being followed. Should not happen with well-behaved components.
QuotaExceededControls on the use of traffic or resources prevent the operation from being executed.
ReadErrorAn error that occurs during reading.
ResourceBusyAn error that occurs when a resource is busy.
ResourceExistsAn error that occurs when a resource already exists.
ResourceUnavailableAn error that occurs when a resource is unavailable.
SecurityErrorUsed for security exceptions
SyntaxErrorAn error that occurs when a command is syntactically incorrect.
WriteErrorAn error that occurs during writing.

Windows PowerShell displays errors based on these categories when the $ErrorView shell variable is set to CategoryView. Cmdlet developers should choose between these categories whenever possible to ensure consistency when reporting errors. For more information, see Windows PowerShell Error Reporting.

Avoid specifying the NotSpecified constant when creating an ErrorRecord object, even if none of the constants defined by this enumeration matches perfectly the error you are reporting. Instead, choose the best match.


 

Target Platforms


Show:
© 2015 Microsoft