annotate common/errorcodes.h @ 146:306e4db11761

Added portable path name handling functions. Windows implementation missing.
author Sascha Wilde <wilde@intevation.de>
date Mon, 24 Mar 2014 17:23:06 +0100
parents 27ebd96798c4
children fc9af77b06b9
rev   line source
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
1 #ifndef ERRORCODES_H
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
2 #define ERRORCODES_H
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
3
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
4 /* No begin certificate / end certificate could be found */
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
5 #define ERR_INVALID_INPUT_NO_LIST 2
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
6 /* Too much input for the installer process */
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
7 #define ERR_TOO_MUCH_INPUT 3
64
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
8 /* Invalid signature */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
9 #define ERR_INVALID_SIGNATURE 4
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
10 /* No instructions */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
11 #define ERR_NO_INSTRUCTIONS 5
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
12 /* Instructions not valid (certs not part of certificate list) */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
13 #define ERR_INVALID_INSTRUCTIONS 6
68
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
14 /* Failed to access specified store */
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
15 #define ERR_STORE_ACCESS_DENIED 7
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
16 /* Failed to add certificate to store */
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
17 #define ERR_STORE_ADD_FAILURE 7
91
80ab2168760f Also add output size handling to str_append_str
Andre Heinecke <aheinecke@intevation.de>
parents: 68
diff changeset
18 /* Generic invalid input */
80ab2168760f Also add output size handling to str_append_str
Andre Heinecke <aheinecke@intevation.de>
parents: 68
diff changeset
19 #define ERR_INVALID_INPUT 8
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
21 /***********************************************************************
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
22 * mozilla specific errors and warnings
145
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
23 * errors range from 0x0081 to 0x08F
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
24 * warnings from 0x0091 to 0x0098
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
25 * Warnings might be ORed together ...
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
26 */
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
27
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
28 /* Warning: Failed to read profile.ini */
145
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
29 #define WARN_MOZ_FAILED_TO_OPEN_INI 0x0091
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
30
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
31 #endif

http://wald.intevation.org/projects/trustbridge/