Skip to content

Commit 24855e9

Browse files
committed
[DOCS] Updates advanced configuration docs
1 parent 7300f39 commit 24855e9

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/advanced-config.asciidoc

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,13 @@ implementing the required contract, and passing it to the client as the
362362
[[exception-handling]]
363363
==== Exception Handling
364364

365-
The library defines a
366-
https://github.com/elastic/elasticsearch-ruby/blob/main/elasticsearch-transport/lib/elasticsearch/transport/transport/errors.rb[number of exception classes]
367-
for various client and server errors, as well as unsuccessful HTTP responses,
368-
making it possible to rescue specific exceptions with desired granularity.
365+
The library defines a
366+
https://github.com/elastic/elastic-transport-ruby/blob/main/lib/elastic/transport/transport/errors.rb[number of exception classes] for various client and server errors, as well as unsuccessful HTTP responses, making it possible to rescue specific exceptions with desired granularity.
369367

370-
The highest-level exception is `Elasticsearch::Transport::Transport::Error` and
371-
is raised for any generic client or server errors.
368+
The highest-level exception is `Elastic::Transport::Transport::Error` and is raised for any generic client or server errors.
372369

373-
`Elasticsearch::Transport::Transport::ServerError` is raised for server errors
374-
only.
370+
`Elastic::Transport::Transport::ServerError` is raised for server errors only.
375371

376-
As an example for response-specific errors, a 404 response status raises an
377-
`Elasticsearch::Transport::Transport::Errors::NotFound` exception.
372+
As an example for response-specific errors, a 404 response status raises an `Elastic::Transport::Transport::Errors::NotFound` exception.
378373

379-
Finally, `Elasticsearch::Transport::Transport::SnifferTimeoutError` is raised
380-
when connection reloading ("sniffing") times out.
374+
Finally, `Elastic::Transport::Transport::SnifferTimeoutError` is raised when connection reloading ("sniffing") times out.

0 commit comments

Comments
 (0)