lib/hobo/errors.rb in hobo-inviqa-0.0.6 vs lib/hobo/errors.rb in hobo-inviqa-0.0.7.pre.rc1

- old
+ new

@@ -1,7 +1,8 @@ module Hobo class Error < StandardError + attr_reader :exit_code end class RubyVersionError < Error def initialize super("Ruby 1.9+ is required to run hobo") @@ -62,6 +63,15 @@ def initialize dep @dependency = dep super("A tool that hobo depends on could not be detected (#{dep})") end end -end \ No newline at end of file + + class HostCheckError < Error + attr_accessor :summary, :advice + def initialize summary, advice + @summary = summary + @advice = advice + super("Host check failed: #{summary}") + end + end +end