2 # ------------------------------------------------------------------
3 # return macro... ignore me.
4 # ------------------------------------------------------------------
5 MACRO ret(str) PROCESS ret_block s=str;
10 # ------------------------------------------------------------------
17 # ------------------------------------------------------------------
19 # ------------------------------------------------------------------
21 IF type == ex_types.SEARCH_TOO_LARGE;
22 ret("Search term is too broad, please narrow your search"); END;
24 IF type == ex_types.UNKNOWN_BARCODE;
25 ret("Barcode does not exist in the database"); END;
27 IF type == ex_types.DUPLICATE_INVALID_USER_BARCODE;
28 ret("Barcode is a duplicate or is not valid"); END;
30 IF type == ex_types.DUPLICATE_USER_USERNAME;
31 ret("Username is a duplicate"); END;
33 IF type == ex_types.USER_WRONG_PASSWORD;
34 ret("Password is incorrect"); END;
36 IF type == ex_types.UNKNOWN_USER;
37 ret("User is not recognized"); END;
39 IF type == ex_types.MAX_RENEWALS_REACHED;
40 ret("The maximun number of renewals has been reached"); END;
42 IF type == ex_types.COPY_NEEDED_FOR_HOLD;
43 ret("Copy is needed to fulfill a hold"); END;
45 IF type == ex_types.NO_HOLD_FOUND;
46 ret("The requested hold could not be found"); END;
48 IF type == ex_types.NO_TRANSACTION_FOUND;
49 ret("The requested transaction could not be found"); END;
51 ret("Unknown exception occured");