Exception: WinRM::WinRMHTTPTransportError

Inherits:
WinRMError
  • Object
show all
Defined in:
lib/winrm/exceptions/exceptions.rb

Overview

non-200 response without a SOAP fault

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, status_code) ⇒ WinRMHTTPTransportError

Returns a new instance of WinRMHTTPTransportError.



52
53
54
55
# File 'lib/winrm/exceptions/exceptions.rb', line 52

def initialize(msg, status_code)
  @status_code = status_code
  super(msg + " (#{status_code}).")
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



50
51
52
# File 'lib/winrm/exceptions/exceptions.rb', line 50

def status_code
  @status_code
end