Class WinRMClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.metricshub.winrm.exceptions.WinRMClientException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WinRMAuthenticationException, WinRMFaultException, WinRMTimeoutException, WqlSyntaxException

public class WinRMClientException extends RuntimeException
Base unchecked exception of the fluent WinRMClient API.

Specific failures are reported through the subtypes WinRMAuthenticationException, WinRMFaultException, WinRMTimeoutException and WqlSyntaxException, so callers can catch exactly what they care about — or just this type for everything. The legacy checked exceptions (WinRMException, WindowsRemoteException, WqlQuerySyntaxException) remain on the legacy API and are unaffected.

See Also:
  • Constructor Details

    • WinRMClientException

      public WinRMClientException(String message)
      Create the exception with a message.
      Parameters:
      message - the detail message
    • WinRMClientException

      public WinRMClientException(String message, Throwable cause)
      Create the exception with a message and the underlying cause.
      Parameters:
      message - the detail message
      cause - the underlying cause