Exception: WinRM::WinRMHTTPTransportError
- Inherits:
-
WinRMError
- Object
- StandardError
- WinRMError
- WinRM::WinRMHTTPTransportError
- Defined in:
- lib/winrm/exceptions/exceptions.rb
Overview
non-200 response without a SOAP fault
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(msg, status_code) ⇒ WinRMHTTPTransportError
constructor
A new instance of WinRMHTTPTransportError.
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_code ⇒ Object (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 |