The wording of the problem deserves some comments. The phrase, "the entire real line" indeed means that the function is to be made continuous over the domain (or if you like, interval) of values of x for which it is defined. It is however defined for all real x as you can see from the very definition of f(x). Hence, to make it continuous over the real line--which by the way represents the values of the independent variable by convention and not the those of f(x) which will be positive in this case--you need to equate the left and right hand limits.
Firstly if you can find a constraint relating the two 'constants' a and b (as you have rightly done), you have a perfectly valid solution.
Secondly, the function is defined differently for x<=1 and for x>1. So x = 1 is perhaps the only point where a discontinuity might arise (and it indeed will if e^a - b does not equal 2 for a particular pair of values of (a,b) ).
Finally, if the question specifically requires you to state a particular set (a,b) then you can set a = 1 and b = e - 2. All that simple really :-). Note that if you write e^a = b + 2, you are saying (though not explicitly) that the right hand side, viz. b + 2 is positive. This means that b > -2. So long as b satisfies this criterion, there are an infinite number of values of a (do you see why?). Now if b is nonnegative, then the constraint amounts to saying that the right hand side is at least 2.
Alternatively if you fix a, you have fixed e^a and so b = e^a - 2 is like b = y - 2 (y = e^a) so for every (positive value of y) there is a unique value of b. However, there are an infinite number of positive real values that y can take, so there are corrrepondingly infinitely number of real values (not necessarily all positive though) that b can take. It really depends on what the problem wants you to do now.
Hope that helps...
Cheers
Vivek