TestimoX

API Reference

Class

ServicesQueryException

Namespace ComputerX.Services
Assembly ComputerX
Base Exception
Implements
ISerializable
Modifiers sealed

Thrown when service enumeration fails to produce any results and diagnostics indicate the host was unreachable, access was denied, or all engines failed.

Inheritance

  • Exception
  • ServicesQueryException

Constructors

public ServicesQueryException(String machine, String methodTried, Boolean fallbackTried, Boolean hostUnreachable, List<String> errors) #

Creates an exception describing a services query failure and aggregates diagnostic details.

Parameters

machine System.String requiredposition: 0
Target machine.
methodTried System.String requiredposition: 1
Primary method used.
fallbackTried System.Boolean requiredposition: 2
Whether fallbacks were attempted.
hostUnreachable System.Boolean requiredposition: 3
Whether host unreachable was detected.
errors System.Collections.Generic.List{System.String} requiredposition: 4
Detail messages from failures.

Properties

public String Machine { get; } #

Target machine name.

public String MethodTried { get; } #

Primary method used (e.g., Win32 API, WMI, SCM).

public Boolean FallbackTried { get; } #

True when a fallback engine was attempted.

public Boolean HostUnreachable { get; } #

True when diagnostics indicate the host was unreachable.

public IReadOnlyList<String> Errors { get; } #

Collection of error strings captured during the attempt.