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