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

Create TOML::Error as a base class for all errors #70

Closed
rsim opened this issue May 27, 2015 · 0 comments
Closed

Create TOML::Error as a base class for all errors #70

rsim opened this issue May 27, 2015 · 0 comments

Comments

@rsim
Copy link
Contributor

rsim commented May 27, 2015

Currently when validating user entered TOML and presenting the error messages in the user interface we need to

rescue TOML::ParseError, TOML::ValueOverwriteError => e

It would be better if there would be a base class TOML::Error from which TOML::ParseError and TOML::ValueOverwriteError (and any other TOML errors) would inherit and then simpler

rescue TOML::Error => e

could be used to rescue any invalid TOML errors.

emancu added a commit that referenced this issue Jun 9, 2015
@emancu emancu closed this as completed Jun 9, 2015
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

No branches or pull requests

2 participants