lib/happi/error.rb in happi-0.0.12 vs lib/happi/error.rb in happi-0.1.0
- old
+ new
@@ -1,6 +1,13 @@
class Happi::Error < StandardError
class ClientError < self
+ attr_reader :response
+
+ def initialize(msg = nil, response = nil)
+ super(msg)
+ @response = response
+ end
+
def message
"A client error occurred"
end
end