Implement exceptions

Add values checks for price and discount.
Merge pull request #1 from antonsukhanov/exceptions

Implement exceptions