01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.core;
15:
16: /**
17: * Contains the constants used to declare the whether the browser catches JavaScript errors
18: * and if they are shown to the user using a JavaScript <code>alert</code> call.</p>
19: *
20: */
21: public interface ClientErrorMode {
22: /**
23: * The browser does not catch errors. Use this mode to break the script execution
24: * useful when debugging because a JavaScript debugger can stop automatically.
25: */
26: int NOT_CATCH_ERRORS = 0;
27:
28: /**
29: * The browser catch errors but no info is shown to the user. Use this mode to
30: * silently hide errors.
31: */
32: int NOT_SHOW_ERRORS = 1;
33:
34: /**
35: * The browser catch errors. Only server errors (server exceptions) are shown
36: * to the user using an <code>alert</code>.
37: */
38: int SHOW_SERVER_ERRORS = 2;
39:
40: /**
41: * The browser catch errors. Only client (JavaScript) errors are shown
42: * to the user using an <code>alert</code>.
43: */
44: int SHOW_CLIENT_ERRORS = 3;
45:
46: /**
47: * The browser catch errors. Client (JavaScript) and server (server exceptions) errors are shown
48: * to the user using an <code>alert</code>.
49: */
50: int SHOW_SERVER_AND_CLIENT_ERRORS = 4;
51: }
|