WindowsAdministrationException class

Namespace Runic.Platform.Administration.Windows · Runic.Platform.Administration.Windows 0.7.0-preview.5

public class WindowsAdministrationException : Exception

Inherits or implements Exception.

An operational failure retaining the original Windows error identity.

Constructors

WindowsAdministrationException

public WindowsAdministrationException(string operation, AdministrationErrorCategory category, NativeErrorDomain nativeErrorDomain, int nativeErrorCode, string message, Exception? innerException = null)

Creates an administration failure. Do not include credentials in operation or message.

Properties

Category

public AdministrationErrorCategory Category { get; }

The classified failure.

NativeErrorCode

public int NativeErrorCode { get; }

The unmodified native error number.

NativeErrorDomain

public NativeErrorDomain NativeErrorDomain { get; }

The domain of the native error.

Operation

public string Operation { get; }

The failed operation, without credentials or connection secrets.