Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
EarnProject::yearsCheck Method (int, int)

Checks for first and last year of earnings within bounds.

C++
void yearsCheck(
    int ibegint, 
    int iendt
) const;
Parameters 
Description 
int ibegint 
First year of earnings in backward projection period. 
int iendt 
Last year of earnings in forward projection period. 

Calls the static version with 4 arguments, adding firstYear and lastYear as arguments.

Exceptions 
Description 
PiaException of type PIA_IDS_END1 if first year of earnings in forward projection period is before last year of earnings in backward projection period; of type PIA_IDS_END3 if first year of earnings in forward projection period is after last year of earnings in forward projection period; of type PIA_IDS_END4 if the total number of years of earnings is greater than the maximum allowed (MAXYRS); of type PIA_IDS_END1 if last year of earnings is before 1937; of type PIA_IDS_END2 if last year of earnings is after maximum year allowed. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!