class Algolia::AlgoliaProtocolError
An exception class raised when the REST API returns an error. The error code and message will be parsed out of the HTTP response, which is also included in the response attribute.
Attributes
code[RW]
message[RW]
Public Class Methods
new(code, message)
click to toggle source
Calls superclass method
# File lib/algolia/error.rb, line 16 def initialize(code, message) self.code = code self.message = message super("#{self.code}: #{self.message}") end