]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/strings/ex.ttk
1d9459c03299f8679fd2d49904a38b95df75ff1e
[Evergreen.git] / Open-ILS / src / templates / strings / ex.ttk
1 [%-
2         # ------------------------------------------------------------------    
3         # return macro... ignore me.
4         # ------------------------------------------------------------------
5         MACRO ret(str) PROCESS ret_block s=str;
6         BLOCK ret_block;
7                 s;
8                 STOP;
9         END;
10         # ------------------------------------------------------------------
11 -%]
12
13
14
15
16 [%-
17         # ------------------------------------------------------------------    
18         # RULES
19         # ------------------------------------------------------------------
20
21         IF type == ex_types.SEARCH_TOO_LARGE;
22                 ret("Search term is too broad, please narrow your search");     END;
23
24         IF type == ex_types.UNKNOWN_BARCODE;
25                 ret("Barcode does not exist in the database");  END;
26
27         IF type == ex_types.DUPLICATE_INVALID_USER_BARCODE;
28                 ret("Barcode is a duplicate or is not valid");  END;
29
30         IF type == ex_types.DUPLICATE_USER_USERNAME;
31                 ret("Username is a duplicate"); END;
32
33         IF type == ex_types.USER_WRONG_PASSWORD;
34                 ret("Password is incorrect");   END;
35
36         IF type == ex_types.UNKNOWN_USER;
37                 ret("User is not recognized"); END;
38
39         IF type == ex_types.MAX_RENEWALS_REACHED;
40                 ret("The maximun number of renewals has been reached"); END;
41
42         ret("Unknown exception occured");
43
44 -%]