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

Ignore parser exceptions #5

Closed
k3ndo opened this issue Dec 25, 2021 · 0 comments
Closed

Ignore parser exceptions #5

k3ndo opened this issue Dec 25, 2021 · 0 comments
Labels
feature New feature or request
Milestone

Comments

@k3ndo
Copy link
Contributor

k3ndo commented Dec 25, 2021

An option could be added to tell the parser not to throw an exception when it find an error.

For example:

new EnvParser()
    .IgnoreParserExceptions()
    .Parse(" ");

Or with the loader:

new EnvLoader()
    .IgnoreParserExceptions()
    .Load();
@MrDave1999 MrDave1999 added the feature New feature or request label Dec 25, 2021
MrDave1999 added a commit that referenced this issue Dec 27, 2021
@MrDave1999 MrDave1999 added this to the 1.1.2 milestone Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants