dmfs / lib-recur

A recurrence processor for Java
Apache License 2.0
198 stars 47 forks source link

Throw custom Exception when too many empty sets were iterated #138

Open dmfs opened 4 months ago

dmfs commented 4 months ago

At present it's difficult to distinguish the IllegalArgumentExceptions thrown due to too many empty recurrence sets from others (also see #137). We could use a custom subclass that we can catch to handle those cases separately.

dmfs commented 4 months ago

Looks like in all but one place an IllegalArgumentException is thrown. This will be a breaking change for people who catch the IllegalStateException thrown by BySetPos.