8000 better handling of invocationtargetexception by SrinivasanTarget · Pull Request #968 · appium/java-client · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

< 8000 input type="hidden" name="authenticity_token" value="mk-e_YVSTtX_AXlV8i146JwWWhpU_bjf-RrtafVVhh6-dvlsnhmFkR8D3KESh8xA5mPw0_4eUTmRsM0WRLJvaw" autocomplete="off" />
Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,16 @@ public Result createSession(HttpClient client, Command command)
return toReturn;
}).orElseThrow(() -> new SessionNotCreatedException(
format("Unable to create new remote session. desired capabilities = %s", desired)));
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
} catch (NoSuchMethodException | IllegalAccessException e) {
throw new WebDriverException(format("It is impossible to create a new session "
+ "because 'createSession' which takes %s, %s and %s was not found "
+ "or it is not accessible",
HttpClient.class.getSimpleName(),
InputStream.class.getSimpleName(),
long.class.getSimpleName()), e);
} catch (InvocationTargetException e) {
throw new SessionNotCreatedException(
format("Unable to create new remote session. Desired capabilities: %s", desired), e);
}
} finally {
os.reset();
Expand Down
0