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