jayasuryat/dowel

Handle negative @Size values gracefully

Opened this issue · 0 comments

Right now if a @Size annotation has a negative value, then there is an exception thrown in the object construction step
[ksp] java.lang.IllegalArgumentException: Requested character count -n is less than zero.

Need to handle this more gracefully, by probably printing a more explanatory error message.

Could also consider creating a lint rule for this.