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

Make CDKException a RuntimeException. #318

Merged
merged 1 commit into from May 7, 2017
Merged

Make CDKException a RuntimeException. #318

merged 1 commit into from May 7, 2017

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented May 5, 2017

This is a safe transformation and allows the exception to be thrown as an unchecked exception. If an API currently declares it as thrown then it must be caught and that's not a problem. It allows NoSuchAtomException to be thrown if a method is miss-used.

See Josh Bloch API design: "Favor Unchecked Exceptions"
How To Design A Good API and Why it Matters - YouTube
http://www.cs.bc.edu/~muller/teaching/cs102/s06/lib/pdf/api-design.pdf

@johnmay johnmay mentioned this pull request May 5, 2017
@egonw egonw merged commit a5fe4b4 into master May 7, 2017
@johnmay johnmay deleted the runtimeException branch June 17, 2017 10:15
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