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

Patch/runtimeexception #324

Merged
merged 2 commits into from May 20, 2017
Merged

Patch/runtimeexception #324

merged 2 commits into from May 20, 2017

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented May 20, 2017

Reverts a patch from the other week. Whilst valid, there are some areas that currently use CDKException for control flow (i.e. the caller needs to know to expect and exception). This is bad in general but switching to a RuntimeException means the IDE won't give a hint.

The NoSuchAtomException is converted to a RuntimeException - technically an API break but should be safe-ish. The exception is thrown for programmer error (accessing an atom that doesn't exisit).

@egonw egonw merged commit 794419e into master May 20, 2017
@johnmay johnmay deleted the patch/runtimeexception branch June 16, 2017 18:38
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