lib/mistral_client/error.rb in mistral_client-1.2.0 vs lib/mistral_client/error.rb in mistral_client-1.2.1
- old
+ new
@@ -1,6 +1,14 @@
module MistralClient
class MistralError < StandardError; end
class ConfigurationError < MistralError; end
class MissingObjectError < MistralError; end
+ class MistralResponseError < MistralError
+ attr_reader :response
+
+ def initialize(response)
+ @response = response
+ super(response)
+ end
+ end
end