lib/happi/error.rb in happi-0.1.0 vs lib/happi/error.rb in happi-0.2.0

- old
+ new

@@ -1,13 +1,13 @@ class Happi::Error < StandardError - class ClientError < self - attr_reader :response + attr_reader :response - def initialize(msg = nil, response = nil) - super(msg) - @response = response - end + def initialize(msg = nil, response = nil) + super(msg) + @response = response + end + class ClientError < self def message "A client error occurred" end end