Exception: EmbeddingUtil::EndpointNotFoundError
- Inherits:
-
EndpointError
- Object
- StandardError
- Error
- EndpointError
- EmbeddingUtil::EndpointNotFoundError
- Defined in:
- lib/embedding_util.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, path:, body: nil) ⇒ EndpointNotFoundError
constructor
A new instance of EndpointNotFoundError.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
11 12 13 |
# File 'lib/embedding_util.rb', line 11 def body @body end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'lib/embedding_util.rb', line 11 def path @path end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
11 12 13 |
# File 'lib/embedding_util.rb', line 11 def uri @uri end |