lib/flexmls_api/response.rb in flexmls_api-0.7.0 vs lib/flexmls_api/response.rb in flexmls_api-0.7.3

- old
+ new

@@ -27,16 +27,17 @@ end # Errors built from API responses class InvalidResponse < StandardError; end class ClientError < StandardError - attr_reader :code, :status + attr_reader :code, :status, :details def initialize (options = {}) # Support the standard initializer for errors opts = options.is_a?(Hash) ? options : {:message => options.to_s} @code = opts[:code] @status = opts[:status] + @details = opts[:details] super(opts[:message]) end end class NotFound < ClientError; end @@ -64,6 +65,6 @@ FlexmlsApi.logger.error "Unable to understand the response! #{d}" raise end end end -end \ No newline at end of file +end