Closed loudbyte closed 2 years ago
https://github.com/MadikhanSadykov/e-store/blob/18e8256992ba7f7108f86c95c2865a41e5110dee/src/main/java/com/madikhan/estore/action/factory/ActionFactory.java#L103
Please avoid using exceptions in such way for business logic. E.g. it is better here to do if/else statement with length checking.
if/else
https://github.com/MadikhanSadykov/e-store/blob/18e8256992ba7f7108f86c95c2865a41e5110dee/src/main/java/com/madikhan/estore/action/factory/ActionFactory.java#L103
Please avoid using exceptions in such way for business logic. E.g. it is better here to do
if/else
statement with length checking.