Skip to content

Improve getPixel error handling #5

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

Conversation

jos-rosenqvist-3812
Copy link
Contributor

Adding a require to getPixel makes the exception for out-of-bounds coordinates be thrown in the calling thread, which makes the stack trace easier to understand.

Fixes #4.

Adding a require to getPixel makes the exception for
out-of-bounds coordinates be thrown in the calling thread,
which makes the stack trace easier to understand.
@bjornregnell
Copy link
Member

Thanks! Nice improvement!

@bjornregnell bjornregnell merged commit 51f9f25 into lunduniversity:master Sep 10, 2019
@jos-rosenqvist-3812 jos-rosenqvist-3812 deleted the getpixel-require branch September 17, 2019 12:00
bjornregnell added a commit that referenced this pull request Sep 18, 2019
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.

fix require in get/setPixel in PixelWindow etc
2 participants