Exception: Hobo::HostCheckError

Inherits:
Error
  • Object
show all
Defined in:
lib/hobo/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

Constructor Details

#initialize(summary, advice) ⇒ HostCheckError

Returns a new instance of HostCheckError.



71
72
73
74
75
# File 'lib/hobo/errors.rb', line 71

def initialize summary, advice
  @summary = summary
  @advice = advice
  super("Host check failed: #{summary}")
end

Instance Attribute Details

#adviceObject

Returns the value of attribute advice.



70
71
72
# File 'lib/hobo/errors.rb', line 70

def advice
  @advice
end

#summaryObject

Returns the value of attribute summary.



70
71
72
# File 'lib/hobo/errors.rb', line 70

def summary
  @summary
end