Throw exception if negative number