Exception: EmbeddingUtil::EndpointNotFoundError

Inherits:
EndpointError show all
Defined in:
lib/embedding_util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, path:, body: nil) ⇒ EndpointNotFoundError

Returns a new instance of EndpointNotFoundError.



13
14
15
16
17
18
# File 'lib/embedding_util.rb', line 13

def initialize(uri, path:, body: nil)
  @uri = uri
  @path = path
  @body = body
  super("#{uri} returned 404")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



11
12
13
# File 'lib/embedding_util.rb', line 11

def body
  @body
end

#pathObject (readonly)

Returns the value of attribute path.



11
12
13
# File 'lib/embedding_util.rb', line 11

def path
  @path
end

#uriObject (readonly)

Returns the value of attribute uri.



11
12
13
# File 'lib/embedding_util.rb', line 11

def uri
  @uri
end