LibreOffice Module ucb (master)  1
filerror.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_UCB_SOURCE_UCP_FILE_FILERROR_HXX
21 #define INCLUDED_UCB_SOURCE_UCP_FILE_FILERROR_HXX
22 
23 namespace fileaccess {
24 
25 // Error codes used to deliver the resulting exceptions
26 
27 #define TASKHANDLER_NO_ERROR 0
28 #define TASKHANDLER_UNSUPPORTED_COMMAND 1
29 #define TASKHANDLING_WRONG_SETPROPERTYVALUES_ARGUMENT 2
30 #define TASKHANDLING_WRONG_GETPROPERTYVALUES_ARGUMENT 3
31 #define TASKHANDLING_WRONG_OPEN_ARGUMENT 4
32 #define TASKHANDLING_WRONG_DELETE_ARGUMENT 5
33 #define TASKHANDLING_WRONG_TRANSFER_ARGUMENT 6
34 #define TASKHANDLING_WRONG_INSERT_ARGUMENT 7
35 #define TASKHANDLING_WRONG_CREATENEWCONTENT_ARGUMENT 8
36 #define TASKHANDLING_UNSUPPORTED_OPEN_MODE 9
37 
38 #define TASKHANDLING_DELETED_STATE_IN_OPEN_COMMAND 10
39 #define TASKHANDLING_INSERTED_STATE_IN_OPEN_COMMAND 11
40 
41 #define TASKHANDLING_OPEN_FILE_FOR_PAGING 12
42 #define TASKHANDLING_NOTCONNECTED_FOR_PAGING 13
43 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_PAGING 14
44 #define TASKHANDLING_IOEXCEPTION_FOR_PAGING 15
45 #define TASKHANDLING_READING_FILE_FOR_PAGING 16
46 
47 #define TASKHANDLING_OPEN_FOR_INPUTSTREAM 17
48 #define TASKHANDLING_OPEN_FOR_STREAM 18
49 #define TASKHANDLING_OPEN_FOR_DIRECTORYLISTING 19
50 
51 #define TASKHANDLING_NOFRESHINSERT_IN_INSERT_COMMAND 22
52 #define TASKHANDLING_NONAMESET_INSERT_COMMAND 23
53 #define TASKHANDLING_NOCONTENTTYPE_INSERT_COMMAND 24
54 
55 #define TASKHANDLING_NO_OPEN_FILE_FOR_OVERWRITE 26
56 #define TASKHANDLING_NO_OPEN_FILE_FOR_WRITE 27
57 #define TASKHANDLING_NOTCONNECTED_FOR_WRITE 28
58 #define TASKHANDLING_BUFFERSIZEEXCEEDED_FOR_WRITE 29
59 #define TASKHANDLING_IOEXCEPTION_FOR_WRITE 30
60 #define TASKHANDLING_FILEIOERROR_FOR_WRITE 31
61 #define TASKHANDLING_FILEIOERROR_FOR_NO_SPACE 71
62 #define TASKHANDLING_FILESIZE_FOR_WRITE 32
63 #define TASKHANDLING_INPUTSTREAM_FOR_WRITE 33
64 #define TASKHANDLING_NOREPLACE_FOR_WRITE 34
65 #define TASKHANDLING_ENSUREDIR_FOR_WRITE 35
66 
67 #define TASKHANDLING_FOLDER_EXISTS_MKDIR 69
68 #define TASKHANDLING_INVALID_NAME_MKDIR 70
69 #define TASKHANDLING_CREATEDIRECTORY_MKDIR 36
70 
71 #define TASKHANDLING_NOSUCHFILEORDIR_FOR_REMOVE 38
72 #define TASKHANDLING_VALIDFILESTATUS_FOR_REMOVE 39
73 #define TASKHANDLING_OPENDIRECTORY_FOR_REMOVE 40
74 #define TASKHANDLING_DELETEFILE_FOR_REMOVE 41
75 #define TASKHANDLING_DELETEDIRECTORY_FOR_REMOVE 42
76 #define TASKHANDLING_FILETYPE_FOR_REMOVE 43
77 #define TASKHANDLING_VALIDFILESTATUSWHILE_FOR_REMOVE 44
78 #define TASKHANDLING_DIRECTORYEXHAUSTED_FOR_REMOVE 45
79 
80 #define TASKHANDLING_TRANSFER_ACCESSINGROOT 46
81 #define TASKHANDLING_TRANSFER_INVALIDSCHEME 47
82 #define TASKHANDLING_TRANSFER_INVALIDURL 48
83 #define TASKHANDLING_TRANSFER_DESTFILETYPE 50
84 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCE 51
85 #define TASKHANDLING_TRANSFER_BY_MOVE_SOURCESTAT 52
86 #define TASKHANDLING_KEEPERROR_FOR_MOVE 53
87 #define TASKHANDLING_NAMECLASH_FOR_MOVE 54
88 #define TASKHANDLING_NAMECLASHMOVE_FOR_MOVE 55
89 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_MOVE 56
90 #define TASKHANDLING_OVERWRITE_FOR_MOVE 57
91 #define TASKHANDLING_RENAME_FOR_MOVE 58
92 #define TASKHANDLING_RENAMEMOVE_FOR_MOVE 59
93 
94 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCE 60
95 #define TASKHANDLING_TRANSFER_BY_COPY_SOURCESTAT 61
96 #define TASKHANDLING_KEEPERROR_FOR_COPY 62
97 #define TASKHANDLING_OVERWRITE_FOR_COPY 63
98 #define TASKHANDLING_RENAME_FOR_COPY 64
99 #define TASKHANDLING_RENAMEMOVE_FOR_COPY 65
100 #define TASKHANDLING_NAMECLASH_FOR_COPY 66
101 #define TASKHANDLING_NAMECLASHMOVE_FOR_COPY 67
102 #define TASKHANDLING_NAMECLASHSUPPORT_FOR_COPY 68
103 
104 }
105 
106 #endif // INCLUDED_UCB_SOURCE_UCP_FILE_FILERROR_HXX
107 
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */