Skip to content

Add exception handling for instance ids #1

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

Merged
merged 2 commits into from
Dec 12, 2015

Conversation

MartinYSpasov
Copy link
Contributor

Add exception handling for instance ids

@iamrichardjones
Copy link
Owner

I like the tests. What does the class checking give us? Am I being stupid? ;)

@MartinYSpasov
Copy link
Contributor Author

In an ideal world we (devs) want to have an exceptions as descriptive as possible :). One application might have hundreds of instance ids objects and throwing an exception (with class name and value) for invalid input can save developer considerable debugging time. However I am open for suggestions :)

@iamrichardjones
Copy link
Owner

still dont get it Im afraid ;)

If I want to instantiate PersonId then I pass in an integer. Im probably being stupid. Can you update the tests to show what you mean? The extra tests you did are perfect. If you want them in a separate pull request I'll get those in straight away

iamrichardjones added a commit that referenced this pull request Dec 12, 2015
Add exception handling for instance ids
@iamrichardjones iamrichardjones merged commit 59f50f6 into iamrichardjones:master Dec 12, 2015
@iamrichardjones
Copy link
Owner

merged :)
Thanks

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.

2 participants