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

Fix exceptions usage #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix exceptions usage #14

wants to merge 2 commits into from

Conversation

asolntsev
Copy link

...because they do not have stack trace

I saw that it was intentionally done in 2014 for improving performance. But I think that this intention was wrong. This exception is thrown very rarely.
In normal circumstances, people never use invalid key. If they make an error in their code, they will find it immediately in development phase and fix. They will almost never get this exception in production. It will not affect performance.

Think wider: if application cache doesn't work because of invalid key, you will have much more serious performance problem.

...because they do not have stack trace

I saw that it was intentionally done in 2014 for improving performance. But I think that this intention was wrong. This exception is thrown very rarely.
In normal circumstances, people never use invalid key. If they make an error in their code, they will find it immediately in development phase and fix. They will almost never get this exception in production. It will not affect performance.

Think wider: if application cache doesn't work because of invalid key, you will have much more serious performance problem.
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.

1 participant