lib/elasticrawl/error.rb in elasticrawl-1.1.0 vs lib/elasticrawl/error.rb in elasticrawl-1.1.1
- old
+ new
@@ -1,7 +1,13 @@
module Elasticrawl
# Base error class extends standard error.
- class Error < StandardError; end
+ class Error < StandardError
+ attr_reader :http_response
+
+ def initialize(response = nil)
+ @http_response = response
+ end
+ end
# AWS access credentials are invalid.
class AWSCredentialsInvalidError < Error; end
# Config directory does not exist.