lib/alephant/publisher/request/error.rb in alephant-publisher-request-0.1.1 vs lib/alephant/publisher/request/error.rb in alephant-publisher-request-0.1.2

- old
+ new

@@ -7,9 +7,18 @@ class ApiError < Error; end class InvalidApiResponse < ApiError; end class InvalidComponentBasePath < InvalidComponent; end class InvalidComponentName < InvalidComponent; end class InvalidComponentClassName < InvalidComponent; end + class InvalidApiStatus < ApiError + attr_accessor :status + + def initialize(status) + @status = status + super("Status: #{status}") + end + + end end end end