{"action":"opened","issue":{"url":"https://api.github.com/repos/jmrozanec/cron-utils/issues/11","labels_url":"https://api.github.com/repos/jmrozanec/cron-utils/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jmrozanec/cron-utils/issues/11/comments","events_url":"https://api.github.com/repos/jmrozanec/cron-utils/issues/11/events","html_url":"https://github.com/jmrozanec/cron-utils/issues/11","id":68784778,"number":11,"title":"Parser exception handling","user":{"login":"francisdb","id":161305,"avatar_url":"https://avatars.githubusercontent.com/u/161305?v=3","gravatar_id":"","url":"https://api.github.com/users/francisdb","html_url":"https://github.com/francisdb","followers_url":"https://api.github.com/users/francisdb/followers","following_url":"https://api.github.com/users/francisdb/following{/other_user}","gists_url":"https://api.github.com/users/francisdb/gists{/gist_id}","starred_url":"https://api.github.com/users/francisdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisdb/subscriptions","organizations_url":"https://api.github.com/users/francisdb/orgs","repos_url":"https://api.github.com/users/francisdb/repos","events_url":"https://api.github.com/users/francisdb/events{/privacy}","received_events_url":"https://api.github.com/users/francisdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T20:53:18Z","updated_at":"2015-04-15T20:53:18Z","closed_at":null,"body":"Parsing can throw different kinds of exceptions. It would be nice if it would always throw `IllegalArgumentException`\r\n\r\neg:\r\nparsing `* *[double space here]* * ?` throws a NumberFormatException with message `For input string: \"\"`\r\n\r\n```java\r\njava.lang.NumberFormatException: For input string: \"\"\r\n\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\r\n\tat java.lang.Integer.parseInt(Integer.java:592)\r\n\tat java.lang.Integer.parseInt(Integer.java:615)\r\n\tat com.cronutils.model.field.constraint.FieldConstraints.stringToInt(FieldConstraints.java:70)\r\n\tat com.cronutils.model.field.On.<init>(On.java:28)\r\n\tat com.cronutils.parser.field.FieldParser.parse(FieldParser.java:46)\r\n\tat com.cronutils.parser.field.CronParserField.parse(CronParserField.java:68)\r\n\tat com.cronutils.parser.CronParser.parse(CronParser.java:86)\r\n```"}}