Improved exception handling for incorrect parameters has been added to
return all years if a parameter is invalid or out of range.