Exception: Typesense::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/typesense/error.rb

Defined Under Namespace

Classes: HTTPError, HTTPStatus0Error, MissingConfiguration, NoMethodError, ObjectAlreadyExists, ObjectNotFound, ObjectUnprocessable, RequestMalformed, RequestUnauthorized, ServerError, TimeoutError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Error

Returns a new instance of Error.



7
8
9
10
11
# File 'lib/typesense/error.rb', line 7

def initialize(data)
  @data = data

  super
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/typesense/error.rb', line 5

def data
  @data
end