changed the Exception thrown by the checkAmountParameter method from IllegalArgumentException to MonetaryException