xref: /trunk/main/ucb/source/ucp/file/filerror.hxx (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 _FILERROR_HXX_
28 
29 namespace fileaccess {
30 
31 // Error codes used to deliver the resulting exceptions
32 #define LOWEST_FREE_ERROR                               72
33 
34 #define TASKHANDLER_NO_ERROR                            0
35 #define TASKHANDLER_UNSUPPORTED_COMMAND                 1
36 #define TASKHANDLING_WRONG_SETPROPERTYVALUES_ARGUMENT   2
37 #define TASKHANDLING_WRONG_GETPROPERTYVALUES_ARGUMENT   3
38 #define TASKHANDLING_WRONG_OPEN_ARGUMENT                4
39 #define TASKHANDLING_WRONG_DELETE_ARGUMENT              5
40 #define TASKHANDLING_WRONG_TRANSFER_ARGUMENT            6
41 #define TASKHANDLING_WRONG_INSERT_ARGUMENT              7
42 #define TASKHANDLING_WRONG_CREATENEWCONTENT_ARGUMENT    8
43 #define TASKHANDLING_UNSUPPORTED_OPEN_MODE              9
44 
45 #define TASKHANDLING_DELETED_STATE_IN_OPEN_COMMAND     10
46 #define TASKHANDLING_INSERTED_STATE_IN_OPEN_COMMAND    11
47 
48 #define TASKHANDLING_OPEN_FILE_FOR_PAGING              12
49 #define TASKHANDLING_NOTCONNECTED_FOR_PAGING           13
50 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_PAGING     14
51 #define TASKHANDLING_IOEXCEPTION_FOR_PAGING            15
52 #define TASKHANDLING_READING_FILE_FOR_PAGING           16
53 
54 #define TASKHANDLING_OPEN_FOR_INPUTSTREAM              17
55 #define TASKHANDLING_OPEN_FOR_STREAM                   18
56 #define TASKHANDLING_OPEN_FOR_DIRECTORYLISTING         19
57 
58 #define TASKHANDLING_NOFRESHINSERT_IN_INSERT_COMMAND   22
59 #define TASKHANDLING_NONAMESET_INSERT_COMMAND          23
60 #define TASKHANDLING_NOCONTENTTYPE_INSERT_COMMAND      24
61 
62 #define TASKHANDLING_ANYOTHER_WRITE                    25   // not used
63 #define TASKHANDLING_NO_OPEN_FILE_FOR_OVERWRITE        26
64 #define TASKHANDLING_NO_OPEN_FILE_FOR_WRITE            27
65 #define TASKHANDLING_NOTCONNECTED_FOR_WRITE            28
66 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_WRITE      29
67 #define TASKHANDLING_IOEXCEPTION_FOR_WRITE             30
68 #define TASKHANDLING_FILEIOERROR_FOR_WRITE             31
69 #define TASKHANDLING_FILEIOERROR_FOR_NO_SPACE          71
70 #define TASKHANDLING_FILESIZE_FOR_WRITE                32
71 #define TASKHANDLING_INPUTSTREAM_FOR_WRITE             33
72 #define TASKHANDLING_NOREPLACE_FOR_WRITE               34
73 #define TASKHANDLING_ENSUREDIR_FOR_WRITE               35
74 
75 #define TASKHANDLING_FOLDER_EXISTS_MKDIR               69
76 #define TASKHANDLING_INVALID_NAME_MKDIR                70
77 #define TASKHANDLING_CREATEDIRECTORY_MKDIR             36
78 
79 #define TASKHANDLING_NOSUCHFILEORDIR_FOR_REMOVE        38
80 #define TASKHANDLING_VALIDFILESTATUS_FOR_REMOVE        39
81 #define TASKHANDLING_OPENDIRECTORY_FOR_REMOVE          40
82 #define TASKHANDLING_DELETEFILE_FOR_REMOVE             41
83 #define TASKHANDLING_DELETEDIRECTORY_FOR_REMOVE        42
84 #define TASKHANDLING_FILETYPE_FOR_REMOVE               43
85 #define TASKHANDLING_VALIDFILESTATUSWHILE_FOR_REMOVE   44
86 #define TASKHANDLING_DIRECTORYEXHAUSTED_FOR_REMOVE     45
87 
88 #define TASKHANDLING_TRANSFER_ACCESSINGROOT            46
89 #define TASKHANDLING_TRANSFER_INVALIDSCHEME            47
90 #define TASKHANDLING_TRANSFER_INVALIDURL               48
91 #define TASKHANDLING_TRANSFER_DESTFILETYPE             50
92 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCE           51
93 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCESTAT       52
94 #define TASKHANDLING_KEEPERROR_FOR_MOVE                53
95 #define TASKHANDLING_NAMECLASH_FOR_MOVE                54
96 #define TASKHANDLING_NAMECLASHMOVE_FOR_MOVE            55
97 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_MOVE         56
98 #define TASKHANDLING_OVERWRITE_FOR_MOVE                57
99 #define TASKHANDLING_RENAME_FOR_MOVE                   58
100 #define TASKHANDLING_RENAMEMOVE_FOR_MOVE               59
101 
102 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCE           60
103 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCESTAT       61
104 #define TASKHANDLING_KEEPERROR_FOR_COPY                62
105 #define TASKHANDLING_OVERWRITE_FOR_COPY                63
106 #define TASKHANDLING_RENAME_FOR_COPY                   64
107 #define TASKHANDLING_RENAMEMOVE_FOR_COPY               65
108 #define TASKHANDLING_NAMECLASH_FOR_COPY                66
109 #define TASKHANDLING_NAMECLASHMOVE_FOR_COPY            67
110 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_COPY         68
111 
112 }
113 
114 #endif
115 
116 
117 
118 
119