Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved conflicts with other packages like Phing regarding Exception classes. #205

Closed

Conversation

bertramakers
Copy link

These changes fix any conflicts of Exception class names with other packages like Phing. #181 attempted to fix this by putting the Exception classes in their own files, this pull request fixes the issue by renaming the Exception class so they all end in "WebDriverException" which makes it more clear what caused the Exception.

I realize that these class names were taken from the the official Java API, but keep in mind that the official Java API uses namespaces (packages) to prevent class name conflicts. As this project does not use namespaces, conflicts have to be reduced by making the class names as unique as possible.

@whhone
Copy link
Contributor

whhone commented Mar 10, 2015

I might take both pull requests. Separating classes into separated files is a good practice and it makes sense to add WebDriverException given we don't use namespapce.

@bertramakers
Copy link
Author

Taking both pull requests will result in merge conflicts, but seeing how #181 already has merge conflicts anyway I would suggest to merge this pull request in first and then fixing any old or new merge conflicts in #181.

@bertramakers bertramakers deleted the phing-compatibility branch March 18, 2015 12:56
@bertramakers bertramakers mentioned this pull request Mar 18, 2015
@bertramakers
Copy link
Author

I had some spare time so I created a combination of this PR and #181 myself, see #209.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants