xref: /aoo41x/main/offapi/com/sun/star/ucb/IOErrorCode.idl (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_ucb_IOErrorCode_idl__
28#define __com_sun_star_ucb_IOErrorCode_idl__
29
30
31//=============================================================================
32
33module com { module sun { module star { module ucb {
34
35//=============================================================================
36/** Types of input/output errors.
37
38    <P>See <type scope="com::sun::star::task">InteractionHandler</type> for a
39    description of what kinds of arguments
40    <type>InteractiveAugmentedIOException</type> should use with each of these
41    error codes.</P>
42*/
43published enum IOErrorCode
44{
45	//-------------------------------------------------------------------------
46	/** An operation was aborted.
47	*/
48	ABORT,
49
50	//-------------------------------------------------------------------------
51	/** An object cannot be accessed due to insufficient user rights.
52	*/
53	ACCESS_DENIED,
54
55	//-------------------------------------------------------------------------
56	/** An object already exists.
57    */
58	ALREADY_EXISTING,
59
60	//-------------------------------------------------------------------------
61	/** A bad checksum.
62	*/
63	BAD_CRC,
64
65	//-------------------------------------------------------------------------
66	/** An object could not be created.
67	*/
68	CANT_CREATE,
69
70	//-------------------------------------------------------------------------
71	/** Data could not be read from a file.
72    */
73	CANT_READ,
74
75	//-------------------------------------------------------------------------
76	/** A seek operation could not be run.
77    */
78	CANT_SEEK,
79
80	//-------------------------------------------------------------------------
81	/** A tell operation could not be run.
82	*/
83	CANT_TELL,
84
85	//-------------------------------------------------------------------------
86	/** Data could not be written to a file.
87	*/
88	CANT_WRITE,
89
90	//-------------------------------------------------------------------------
91	/** A function is not possible because the path contains the current
92		directory.
93	*/
94	CURRENT_DIRECTORY,
95
96	//-------------------------------------------------------------------------
97	/** A device (drive) not ready.
98	*/
99	DEVICE_NOT_READY,
100
101	//-------------------------------------------------------------------------
102	/** A function is not possible because the devices (drives) are not
103		identical.
104	*/
105	DIFFERENT_DEVICES,
106
107	//-------------------------------------------------------------------------
108	/** A general input/output error.
109	*/
110	GENERAL,
111
112	//-------------------------------------------------------------------------
113	/** An invalid attempt was made to access an object.
114	*/
115	INVALID_ACCESS,
116
117	//-------------------------------------------------------------------------
118	/** A file name contains invalid characters.
119	*/
120	INVALID_CHARACTER,
121
122	//-------------------------------------------------------------------------
123	/** A specified device is invalid.
124	*/
125	INVALID_DEVICE,
126
127	//-------------------------------------------------------------------------
128	/** Invalid data length.
129	*/
130	INVALID_LENGTH,
131
132	//-------------------------------------------------------------------------
133	/** An operation was started with an invalid parameter.
134	*/
135	INVALID_PARAMETER,
136
137	//-------------------------------------------------------------------------
138	/** An operation cannot be run on file names containing wildcards.
139	*/
140	IS_WILDCARD,
141
142	//-------------------------------------------------------------------------
143	/** A locking problem.
144	*/
145	LOCKING_VIOLATION,
146
147	//-------------------------------------------------------------------------
148	/** An invalid file name.
149	*/
150	MISPLACED_CHARACTER,
151
152	//-------------------------------------------------------------------------
153    /** A file name is too long.
154    */
155	NAME_TOO_LONG,
156
157	//-------------------------------------------------------------------------
158	/** A nonexistent object.
159	*/
160	NOT_EXISTING,
161
162	//-------------------------------------------------------------------------
163	/** The path to a file does not exist.
164	*/
165	NOT_EXISTING_PATH,
166
167	//-------------------------------------------------------------------------
168	/** An action is not supported.
169	*/
170	NOT_SUPPORTED,
171
172	//-------------------------------------------------------------------------
173	/** An object is not a directory.
174	*/
175	NO_DIRECTORY,
176
177	//-------------------------------------------------------------------------
178	/** An object is not a file.
179    */
180	NO_FILE,
181
182	//-------------------------------------------------------------------------
183	/** No more space on a device.
184	*/
185	OUT_OF_DISK_SPACE,
186
187	//-------------------------------------------------------------------------
188	/** No more file handles available.
189	*/
190	OUT_OF_FILE_HANDLES,
191
192	//-------------------------------------------------------------------------
193	/** An operation could not be run due to insufficient memory.
194    */
195	OUT_OF_MEMORY,
196
197	//-------------------------------------------------------------------------
198	/** An operation is still pending.
199	*/
200	PENDING,
201
202	//-------------------------------------------------------------------------
203	/** An object cannot be copied into itself.
204	*/
205	RECURSIVE,
206
207	//-------------------------------------------------------------------------
208	/** An unknown I/O error has occurred.
209	*/
210	UNKNOWN,
211
212	//-------------------------------------------------------------------------
213	/** A function is not possible because the object is write protected.
214	*/
215	WRITE_PROTECTED,
216
217	//-------------------------------------------------------------------------
218	/** An incorrect file format.
219	*/
220	WRONG_FORMAT,
221
222	//-------------------------------------------------------------------------
223	/** An incorrect file version.
224    */
225	WRONG_VERSION
226
227};
228
229//=============================================================================
230
231}; }; }; };
232
233#endif
234