Will it be possible get result status in future? #63
Replies: 1 comment 2 replies
-
I don't fully understand what you mean, but if you expect that an "invalid email" (whatever that means) should throw an exception, that's something you'll need to do yourself (should be relatively trivial to do). An email being valid or not is IMO a boolean, not an exception. If you want an exception, you can throw one in your code, based on the value of the boolean. There are various exceptions being thrown at various points in the process of connecting/validating/testing a single email, but they are caught, acted upon (based on how the validator is configured using options) and not re-thrown (in order to be able to produce a boolean in the end). If you could/would write how you'd like/imagine the "outside" code to look like (which methods of the package you'd like to call, which results they'd contain etc.), that would help too. Then we can see what it would take to make the package behave as needed/desired (if doable). Worst case, maybe logging could be extended to log all exceptions as they're happening into another array (keyed by email maybe?). Then have some |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it not be possible to get the reason for the error from the outside? I'm considering applying this package, but I have a feeling that I won't know outside the class the reason for the error - (some basicenum list) fot example:
Beta Was this translation helpful? Give feedback.
All reactions