Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / ucb / IOErrorCode.idl
blob8fd6d0b08724a99f7a5a795c40ebb5edfdfc4bf9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: IOErrorCode.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_ucb_IOErrorCode_idl__
31 #define __com_sun_star_ucb_IOErrorCode_idl__
34 //=============================================================================
36 module com { module sun { module star { module ucb {
38 //=============================================================================
39 /** Types of input/output errors.
41 <P>See <type scope="com::sun::star::task">InteractionHandler</type> for a
42 description of what kinds of arguments
43 <type>InteractiveAugmentedIOException</type> should use with each of these
44 error codes.</P>
46 published enum IOErrorCode
48 //-------------------------------------------------------------------------
49 /** An operation was aborted.
51 ABORT,
53 //-------------------------------------------------------------------------
54 /** An object cannot be accessed due to insufficient user rights.
56 ACCESS_DENIED,
58 //-------------------------------------------------------------------------
59 /** An object already exists.
61 ALREADY_EXISTING,
63 //-------------------------------------------------------------------------
64 /** A bad checksum.
66 BAD_CRC,
68 //-------------------------------------------------------------------------
69 /** An object could not be created.
71 CANT_CREATE,
73 //-------------------------------------------------------------------------
74 /** Data could not be read from a file.
76 CANT_READ,
78 //-------------------------------------------------------------------------
79 /** A seek operation could not be run.
81 CANT_SEEK,
83 //-------------------------------------------------------------------------
84 /** A tell operation could not be run.
86 CANT_TELL,
88 //-------------------------------------------------------------------------
89 /** Data could not be written to a file.
91 CANT_WRITE,
93 //-------------------------------------------------------------------------
94 /** A function is not possible because the path contains the current
95 directory.
97 CURRENT_DIRECTORY,
99 //-------------------------------------------------------------------------
100 /** A device (drive) not ready.
102 DEVICE_NOT_READY,
104 //-------------------------------------------------------------------------
105 /** A function is not possible because the devices (drives) are not
106 identical.
108 DIFFERENT_DEVICES,
110 //-------------------------------------------------------------------------
111 /** A general input/output error.
113 GENERAL,
115 //-------------------------------------------------------------------------
116 /** An invalid attempt was made to access an object.
118 INVALID_ACCESS,
120 //-------------------------------------------------------------------------
121 /** A file name contains invalid characters.
123 INVALID_CHARACTER,
125 //-------------------------------------------------------------------------
126 /** A specified device is invalid.
128 INVALID_DEVICE,
130 //-------------------------------------------------------------------------
131 /** Invalid data length.
133 INVALID_LENGTH,
135 //-------------------------------------------------------------------------
136 /** An operation was started with an invalid parameter.
138 INVALID_PARAMETER,
140 //-------------------------------------------------------------------------
141 /** An operation cannot be run on file names containing wildcards.
143 IS_WILDCARD,
145 //-------------------------------------------------------------------------
146 /** A locking problem.
148 LOCKING_VIOLATION,
150 //-------------------------------------------------------------------------
151 /** An invalid file name.
153 MISPLACED_CHARACTER,
155 //-------------------------------------------------------------------------
156 /** A file name is too long.
158 NAME_TOO_LONG,
160 //-------------------------------------------------------------------------
161 /** A nonexistent object.
163 NOT_EXISTING,
165 //-------------------------------------------------------------------------
166 /** The path to a file does not exist.
168 NOT_EXISTING_PATH,
170 //-------------------------------------------------------------------------
171 /** An action is not supported.
173 NOT_SUPPORTED,
175 //-------------------------------------------------------------------------
176 /** An object is not a directory.
178 NO_DIRECTORY,
180 //-------------------------------------------------------------------------
181 /** An object is not a file.
183 NO_FILE,
185 //-------------------------------------------------------------------------
186 /** No more space on a device.
188 OUT_OF_DISK_SPACE,
190 //-------------------------------------------------------------------------
191 /** No more file handles available.
193 OUT_OF_FILE_HANDLES,
195 //-------------------------------------------------------------------------
196 /** An operation could not be run due to insufficient memory.
198 OUT_OF_MEMORY,
200 //-------------------------------------------------------------------------
201 /** An operation is still pending.
203 PENDING,
205 //-------------------------------------------------------------------------
206 /** An object cannot be copied into itself.
208 RECURSIVE,
210 //-------------------------------------------------------------------------
211 /** An unknown I/O error has occurred.
213 UNKNOWN,
215 //-------------------------------------------------------------------------
216 /** A function is not possible because the object is write protected.
218 WRITE_PROTECTED,
220 //-------------------------------------------------------------------------
221 /** An incorrect file format.
223 WRONG_FORMAT,
225 //-------------------------------------------------------------------------
226 /** An incorrect file version.
228 WRONG_VERSION
232 //=============================================================================
234 }; }; }; };
236 #endif