Is that a good practice to throw exception from controller
Is that a good practice to throw exception from controller?
For instance we may throw IllegalStateException from some controller's
method if Request hasn't some attribute.
Also for instance we may throw IllegalArgumentException from some
controller's method if Request's parameter is not in appropriate
format/range.
No comments:
Post a Comment