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

Wrong exeption type throws when invalid sequence of operations applied for the parser #436

Closed
plokhotnyuk opened this issue Dec 5, 2019 · 0 comments
Labels

Comments

@plokhotnyuk
Copy link
Owner

plokhotnyuk commented Dec 5, 2019

IllegalStateException should be raised instead of ArrayIndexOutOfBoundsException for cases when invalid sequence of operations applied for the parser.

From JavaDocs for IllegalStateException: "Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant