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