Commit 0149954
[CLIENT] Fixed, that
Allow rescuing raised Errors::NotFound or Errors::ServerError by rescue
Transport::Error.
Behavior is now in line with documentation: “The highest-level
exception is {Elasticsearch::Transport::Transport::Error} and will be
raised for any generic client or server errors.”
Closes #100ServerError inherits from Transport::Error
1 parent 8107109 commit 0149954
File tree
2 files changed
+6
-1
lines changed- elasticsearch-transport
- lib/elasticsearch/transport/transport
- test/unit
2 files changed
+6
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
455 | 460 | | |
0 commit comments