2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is the Netscape security libraries.
14
* The Initial Developer of the Original Code is Netscape
15
* Communications Corporation. Portions created by Netscape are
16
* Copyright (C) 1994-2000 Netscape Communications Corporation. All
21
* Alternatively, the contents of this file may be used under the
22
* terms of the GNU General Public License Version 2 or later (the
23
* "GPL"), in which case the provisions of the GPL are applicable
24
* instead of those above. If you wish to allow use of your
25
* version of this file only under the terms of the GPL and not to
26
* allow others to use your version of this file under the MPL,
27
* indicate your decision by deleting the provisions above and
28
* replace them with the notice and other provisions required by
29
* the GPL. If you do not delete the provisions above, a recipient
30
* may use your version of this file under either the MPL or the
33
/* General NSPR 2.0 errors */
34
/* Caller must #include "prerror.h" */
36
ER2( PR_OUT_OF_MEMORY_ERROR, "Memory allocation attempt failed." )
37
ER2( PR_BAD_DESCRIPTOR_ERROR, "Invalid file descriptor." )
38
ER2( PR_WOULD_BLOCK_ERROR, "The operation would have blocked." )
39
ER2( PR_ACCESS_FAULT_ERROR, "Invalid memory address argument." )
40
ER2( PR_INVALID_METHOD_ERROR, "Invalid function for file type." )
41
ER2( PR_ILLEGAL_ACCESS_ERROR, "Invalid memory address argument." )
42
ER2( PR_UNKNOWN_ERROR, "Some unknown error has occurred." )
43
ER2( PR_PENDING_INTERRUPT_ERROR,"Operation interrupted by another thread." )
44
ER2( PR_NOT_IMPLEMENTED_ERROR, "function not implemented." )
45
ER2( PR_IO_ERROR, "I/O function error." )
46
ER2( PR_IO_TIMEOUT_ERROR, "I/O operation timed out." )
47
ER2( PR_IO_PENDING_ERROR, "I/O operation on busy file descriptor." )
48
ER2( PR_DIRECTORY_OPEN_ERROR, "The directory could not be opened." )
49
ER2( PR_INVALID_ARGUMENT_ERROR, "Invalid function argument." )
50
ER2( PR_ADDRESS_NOT_AVAILABLE_ERROR, "Network address not available (in use?)." )
51
ER2( PR_ADDRESS_NOT_SUPPORTED_ERROR, "Network address type not supported." )
52
ER2( PR_IS_CONNECTED_ERROR, "Already connected." )
53
ER2( PR_BAD_ADDRESS_ERROR, "Network address is invalid." )
54
ER2( PR_ADDRESS_IN_USE_ERROR, "Local Network address is in use." )
55
ER2( PR_CONNECT_REFUSED_ERROR, "Connection refused by peer." )
56
ER2( PR_NETWORK_UNREACHABLE_ERROR, "Network address is presently unreachable." )
57
ER2( PR_CONNECT_TIMEOUT_ERROR, "Connection attempt timed out." )
58
ER2( PR_NOT_CONNECTED_ERROR, "Network file descriptor is not connected." )
59
ER2( PR_LOAD_LIBRARY_ERROR, "Failure to load dynamic library." )
60
ER2( PR_UNLOAD_LIBRARY_ERROR, "Failure to unload dynamic library." )
61
ER2( PR_FIND_SYMBOL_ERROR,
62
"Symbol not found in any of the loaded dynamic libraries." )
63
ER2( PR_INSUFFICIENT_RESOURCES_ERROR, "Insufficient system resources." )
64
ER2( PR_DIRECTORY_LOOKUP_ERROR,
65
"A directory lookup on a network address has failed." )
66
ER2( PR_TPD_RANGE_ERROR,
67
"Attempt to access a TPD key that is out of range." )
68
ER2( PR_PROC_DESC_TABLE_FULL_ERROR, "Process open FD table is full." )
69
ER2( PR_SYS_DESC_TABLE_FULL_ERROR, "System open FD table is full." )
70
ER2( PR_NOT_SOCKET_ERROR,
71
"Network operation attempted on non-network file descriptor." )
72
ER2( PR_NOT_TCP_SOCKET_ERROR,
73
"TCP-specific function attempted on a non-TCP file descriptor." )
74
ER2( PR_SOCKET_ADDRESS_IS_BOUND_ERROR, "TCP file descriptor is already bound." )
75
ER2( PR_NO_ACCESS_RIGHTS_ERROR, "Access Denied." )
76
ER2( PR_OPERATION_NOT_SUPPORTED_ERROR,
77
"The requested operation is not supported by the platform." )
78
ER2( PR_PROTOCOL_NOT_SUPPORTED_ERROR,
79
"The host operating system does not support the protocol requested." )
80
ER2( PR_REMOTE_FILE_ERROR, "Access to the remote file has been severed." )
81
ER2( PR_BUFFER_OVERFLOW_ERROR,
82
"The value requested is too large to be stored in the data buffer provided." )
83
ER2( PR_CONNECT_RESET_ERROR, "TCP connection reset by peer." )
84
ER2( PR_RANGE_ERROR, "Unused." )
85
ER2( PR_DEADLOCK_ERROR, "The operation would have deadlocked." )
86
ER2( PR_FILE_IS_LOCKED_ERROR, "The file is already locked." )
87
ER2( PR_FILE_TOO_BIG_ERROR,
88
"Write would result in file larger than the system allows." )
89
ER2( PR_NO_DEVICE_SPACE_ERROR, "The device for storing the file is full." )
90
ER2( PR_PIPE_ERROR, "Unused." )
91
ER2( PR_NO_SEEK_DEVICE_ERROR, "Unused." )
92
ER2( PR_IS_DIRECTORY_ERROR,
93
"Cannot perform a normal file operation on a directory." )
94
ER2( PR_LOOP_ERROR, "Symbolic link loop." )
95
ER2( PR_NAME_TOO_LONG_ERROR, "File name is too long." )
96
ER2( PR_FILE_NOT_FOUND_ERROR, "File not found." )
97
ER2( PR_NOT_DIRECTORY_ERROR,
98
"Cannot perform directory operation on a normal file." )
99
ER2( PR_READ_ONLY_FILESYSTEM_ERROR,
100
"Cannot write to a read-only file system." )
101
ER2( PR_DIRECTORY_NOT_EMPTY_ERROR,
102
"Cannot delete a directory that is not empty." )
103
ER2( PR_FILESYSTEM_MOUNTED_ERROR,
104
"Cannot delete or rename a file object while the file system is busy." )
105
ER2( PR_NOT_SAME_DEVICE_ERROR,
106
"Cannot rename a file to a file system on another device." )
107
ER2( PR_DIRECTORY_CORRUPTED_ERROR,
108
"The directory object in the file system is corrupted." )
109
ER2( PR_FILE_EXISTS_ERROR,
110
"Cannot create or rename a filename that already exists." )
111
ER2( PR_MAX_DIRECTORY_ENTRIES_ERROR,
112
"Directory is full. No additional filenames may be added." )
113
ER2( PR_INVALID_DEVICE_STATE_ERROR,
114
"The required device was in an invalid state." )
115
ER2( PR_DEVICE_IS_LOCKED_ERROR, "The device is locked." )
116
ER2( PR_NO_MORE_FILES_ERROR, "No more entries in the directory." )
117
ER2( PR_END_OF_FILE_ERROR, "Encountered end of file." )
118
ER2( PR_FILE_SEEK_ERROR, "Seek error." )
119
ER2( PR_FILE_IS_BUSY_ERROR, "The file is busy." )
120
ER2( PR_IN_PROGRESS_ERROR,
121
"Operation is still in progress (probably a non-blocking connect)." )
122
ER2( PR_ALREADY_INITIATED_ERROR,
123
"Operation has already been initiated (probably a non-blocking connect)." )
125
#ifdef PR_GROUP_EMPTY_ERROR
126
ER2( PR_GROUP_EMPTY_ERROR, "The wait group is empty." )
129
#ifdef PR_INVALID_STATE_ERROR
130
ER2( PR_INVALID_STATE_ERROR, "Object state improper for request." )
133
#ifdef PR_NETWORK_DOWN_ERROR
134
ER2( PR_NETWORK_DOWN_ERROR, "Network is down." )
137
#ifdef PR_SOCKET_SHUTDOWN_ERROR
138
ER2( PR_SOCKET_SHUTDOWN_ERROR, "The socket was previously shut down." )
141
#ifdef PR_CONNECT_ABORTED_ERROR
142
ER2( PR_CONNECT_ABORTED_ERROR, "TCP Connection aborted." )
145
#ifdef PR_HOST_UNREACHABLE_ERROR
146
ER2( PR_HOST_UNREACHABLE_ERROR, "Host is unreachable." )
150
ER2( PR_MAX_ERROR, "Placeholder for the end of the list" )