Exception: MeiliSearch::CommunicationError

Inherits:
Error
  • Object
show all
Defined in:
lib/meilisearch/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ CommunicationError

Returns a new instance of CommunicationError.



58
59
60
61
# File 'lib/meilisearch/error.rb', line 58

def initialize(message)
  @message = "An error occurred while trying to connect to the MeiliSearch instance: #{message}"
  super(@message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



56
57
58
# File 'lib/meilisearch/error.rb', line 56

def message
  @message
end