Exception: Gofer::HostError
- Inherits:
-
Exception
- Object
- Exception
- Gofer::HostError
- Defined in:
- lib/gofer/host_error.rb
Overview
An error encountered performing a Gofer command
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Instance of Gofer::Host that raised the error.
-
#response ⇒ Object
readonly
Instance of Gofer::Response encapsulating the error output.
Instance Method Summary collapse
-
#initialize(host, response, message) ⇒ HostError
constructor
A new instance of HostError.
Constructor Details
#initialize(host, response, message) ⇒ HostError
Returns a new instance of HostError.
11 12 13 14 15 |
# File 'lib/gofer/host_error.rb', line 11 def initialize host, response, @host = host @response = response super "#{host.hostname}: #{}" end |
Instance Attribute Details
#host ⇒ Object (readonly)
Instance of Gofer::Host that raised the error
6 7 8 |
# File 'lib/gofer/host_error.rb', line 6 def host @host end |
#response ⇒ Object (readonly)
Instance of Gofer::Response encapsulating the error output
9 10 11 |
# File 'lib/gofer/host_error.rb', line 9 def response @response end |