Skip to content

Commit 9abb158

Browse files
authored
Server error (#182)
* inherit error * update changelog
1 parent 76b1cc2 commit 9abb158

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Read `release_notes.md` for commit level details.
66
### Enhancements
77

88
### Bug fixes
9+
- Inherit CoreError for ServerError in order to handle it as an exception
910

1011
### Deprecations
1112

lib/appium_lib_core/common/error.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class NoSuchElementError < CoreError; end
1414
class UnsupportedOperationError < CoreError; end
1515

1616
# Server side error
17-
class ServerError; end
17+
class ServerError < CoreError; end
1818
end
1919
end
2020
end

0 commit comments

Comments
 (0)