Back to index

lightning-sunbird  0.9+nobinonly
prerrstrs.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is Mozilla Communicator client code, released
00015  * March 31, 1998.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998-1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 /*
00039  * pserrstrs.h - map NSPR errors to strings (used by errormap.c)
00040  *
00041  */
00042 
00043 /*
00044  ****************************************************************************
00045  * The code below this point was provided by Nelson Bolyard <nelsonb> of the
00046  *     Netscape Certificate Server team on 27-March-1998.
00047  *     Taken from the file ns/security/cmd/lib/NSPRerrs.h on NSS_1_BRANCH.
00048  *     Last updated from there: 24-July-1998 by Mark Smith <mcs>
00049  *
00050  * All of the Directory Server specific changes are enclosed inside
00051  *     #ifdef NS_DIRECTORY.
00052  ****************************************************************************
00053  */
00054 /* General NSPR 2.0 errors */
00055 /* Caller must #include "prerror.h" */
00056 
00057 ER2( PR_OUT_OF_MEMORY_ERROR,       "Memory allocation attempt failed." )
00058 ER2( PR_BAD_DESCRIPTOR_ERROR,      "Invalid file descriptor." )
00059 ER2( PR_WOULD_BLOCK_ERROR,  "The operation would have blocked." )
00060 ER2( PR_ACCESS_FAULT_ERROR,        "Invalid memory address argument." )
00061 ER2( PR_INVALID_METHOD_ERROR,      "Invalid function for file type." )
00062 ER2( PR_ILLEGAL_ACCESS_ERROR,      "Invalid memory address argument." )
00063 ER2( PR_UNKNOWN_ERROR,             "Some unknown error has occurred." )
00064 ER2( PR_PENDING_INTERRUPT_ERROR,"Operation interrupted by another thread." )
00065 ER2( PR_NOT_IMPLEMENTED_ERROR,     "function not implemented." )
00066 ER2( PR_IO_ERROR,           "I/O function error." )
00067 ER2( PR_IO_TIMEOUT_ERROR,   "I/O operation timed out." )
00068 ER2( PR_IO_PENDING_ERROR,   "I/O operation on busy file descriptor." )
00069 ER2( PR_DIRECTORY_OPEN_ERROR,      "The directory could not be opened." )
00070 ER2( PR_INVALID_ARGUMENT_ERROR, "Invalid function argument." )
00071 ER2( PR_ADDRESS_NOT_AVAILABLE_ERROR, "Network address not available (in use?)." )
00072 ER2( PR_ADDRESS_NOT_SUPPORTED_ERROR, "Network address type not supported." )
00073 ER2( PR_IS_CONNECTED_ERROR,        "Already connected." )
00074 ER2( PR_BAD_ADDRESS_ERROR,  "Network address is invalid." )
00075 ER2( PR_ADDRESS_IN_USE_ERROR,      "Local Network address is in use." )
00076 ER2( PR_CONNECT_REFUSED_ERROR,     "Connection refused by peer." )
00077 ER2( PR_NETWORK_UNREACHABLE_ERROR, "Network address is presently unreachable." )
00078 ER2( PR_CONNECT_TIMEOUT_ERROR,     "Connection attempt timed out." )
00079 ER2( PR_NOT_CONNECTED_ERROR,       "Network file descriptor is not connected." )
00080 ER2( PR_LOAD_LIBRARY_ERROR,        "Failure to load dynamic library." )
00081 ER2( PR_UNLOAD_LIBRARY_ERROR,      "Failure to unload dynamic library." )
00082 ER2( PR_FIND_SYMBOL_ERROR,  
00083 "Symbol not found in any of the loaded dynamic libraries." )
00084 ER2( PR_INSUFFICIENT_RESOURCES_ERROR, "Insufficient system resources." )
00085 ER2( PR_DIRECTORY_LOOKUP_ERROR,    
00086 "A directory lookup on a network address has failed." )
00087 ER2( PR_TPD_RANGE_ERROR,           
00088 "Attempt to access a TPD key that is out of range." )
00089 ER2( PR_PROC_DESC_TABLE_FULL_ERROR, "Process open FD table is full." )
00090 ER2( PR_SYS_DESC_TABLE_FULL_ERROR, "System open FD table is full." )
00091 ER2( PR_NOT_SOCKET_ERROR,   
00092 "Network operation attempted on non-network file descriptor." )
00093 ER2( PR_NOT_TCP_SOCKET_ERROR,      
00094 "TCP-specific function attempted on a non-TCP file descriptor." )
00095 ER2( PR_SOCKET_ADDRESS_IS_BOUND_ERROR, "TCP file descriptor is already bound." )
00096 ER2( PR_NO_ACCESS_RIGHTS_ERROR, "Access Denied." )
00097 ER2( PR_OPERATION_NOT_SUPPORTED_ERROR, 
00098 "The requested operation is not supported by the platform." )
00099 ER2( PR_PROTOCOL_NOT_SUPPORTED_ERROR, 
00100 "The host operating system does not support the protocol requested." )
00101 ER2( PR_REMOTE_FILE_ERROR,  "Access to the remote file has been severed." )
00102 ER2( PR_BUFFER_OVERFLOW_ERROR,     
00103 "The value requested is too large to be stored in the data buffer provided." )
00104 ER2( PR_CONNECT_RESET_ERROR,       "TCP connection reset by peer." )
00105 ER2( PR_RANGE_ERROR,               "Unused." )
00106 ER2( PR_DEADLOCK_ERROR,     "The operation would have deadlocked." )
00107 ER2( PR_FILE_IS_LOCKED_ERROR,      "The file is already locked." )
00108 ER2( PR_FILE_TOO_BIG_ERROR,        
00109 "Write would result in file larger than the system allows." )
00110 ER2( PR_NO_DEVICE_SPACE_ERROR,     "The device for storing the file is full." )
00111 ER2( PR_PIPE_ERROR,         "Unused." )
00112 ER2( PR_NO_SEEK_DEVICE_ERROR,      "Unused." )
00113 ER2( PR_IS_DIRECTORY_ERROR,        
00114 "Cannot perform a normal file operation on a directory." )
00115 ER2( PR_LOOP_ERROR,         "Symbolic link loop." )
00116 ER2( PR_NAME_TOO_LONG_ERROR,       "File name is too long." )
00117 ER2( PR_FILE_NOT_FOUND_ERROR,      "File not found." )
00118 ER2( PR_NOT_DIRECTORY_ERROR,       
00119 "Cannot perform directory operation on a normal file." )
00120 ER2( PR_READ_ONLY_FILESYSTEM_ERROR, 
00121 "Cannot write to a read-only file system." )
00122 ER2( PR_DIRECTORY_NOT_EMPTY_ERROR, 
00123 "Cannot delete a directory that is not empty." )
00124 ER2( PR_FILESYSTEM_MOUNTED_ERROR, 
00125 "Cannot delete or rename a file object while the file system is busy." )
00126 ER2( PR_NOT_SAME_DEVICE_ERROR,     
00127 "Cannot rename a file to a file system on another device." )
00128 ER2( PR_DIRECTORY_CORRUPTED_ERROR, 
00129 "The directory object in the file system is corrupted." )
00130 ER2( PR_FILE_EXISTS_ERROR,  
00131 "Cannot create or rename a filename that already exists." )
00132 ER2( PR_MAX_DIRECTORY_ENTRIES_ERROR, 
00133 "Directory is full.  No additional filenames may be added." )
00134 ER2( PR_INVALID_DEVICE_STATE_ERROR, 
00135 "The required device was in an invalid state." )
00136 ER2( PR_DEVICE_IS_LOCKED_ERROR, "The device is locked." )
00137 ER2( PR_NO_MORE_FILES_ERROR,       "No more entries in the directory." )
00138 ER2( PR_END_OF_FILE_ERROR,  "Encountered end of file." )
00139 ER2( PR_FILE_SEEK_ERROR,    "Seek error." )
00140 ER2( PR_FILE_IS_BUSY_ERROR,        "The file is busy." )
00141 ER2( PR_IN_PROGRESS_ERROR,
00142 "Operation is still in progress (probably a non-blocking connect)." )
00143 ER2( PR_ALREADY_INITIATED_ERROR,
00144 "Operation has already been initiated (probably a non-blocking connect)." )
00145 
00146 #ifdef PR_GROUP_EMPTY_ERROR
00147 ER2( PR_GROUP_EMPTY_ERROR,  "The wait group is empty." )
00148 #endif
00149 
00150 #ifdef PR_INVALID_STATE_ERROR
00151 ER2( PR_INVALID_STATE_ERROR,       "Object state improper for request." )
00152 #endif
00153 
00154 ER2( PR_MAX_ERROR,          "Placeholder for the end of the list" )