KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jcifs > smb > DosError


1 /* jcifs smb client library in Java
2  * Copyright (C) 2004 "Michael B. Allen" <jcifs at samba dot org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package jcifs.smb;
20
21 public interface DosError {
22
23     static final int[][] DOS_ERROR_CODES = {
24         { 0x00000000, 0x00000000 },
25         { 0x00010001, 0xc0000002 },
26         { 0x00010002, 0xc0000002 },
27         { 0x00020001, 0xc000000f },
28         { 0x00020002, 0xc000006a },
29         { 0x00030001, 0xc000003a },
30         { 0x00030002, 0xc00000cb },
31         { 0x00040002, 0xc00000ca },
32         { 0x00050001, 0xc0000022 },
33         { 0x00050002, 0xc00000c9 },
34         { 0x00060001, 0xc0000008 },
35         { 0x00060002, 0xc00000cc },
36         { 0x00080001, 0xc000009a },
37         { 0x00130003, 0xc00000a2 },
38         { 0x00150003, 0xc0000013 },
39         { 0x001f0001, 0xc0000001 },
40         { 0x001f0003, 0xc0000001 },
41         { 0x00200001, 0xc0000043 },
42         { 0x00200003, 0xc0000043 },
43         { 0x00210003, 0xc0000054 },
44         { 0x00270003, 0xc000007f },
45         { 0x00340001, 0xC00000bd },
46         { 0x00430001, 0xc00000cc },
47         { 0x00470001, 0xC00000d0 },
48         { 0x00500001, 0xc0000035 },
49         { 0x00570001, 0xc0000003 },
50         { 0x005a0002, 0xc00000ce },
51         { 0x006d0001, 0xC000014b },
52         { 0x007b0001, 0xc0000033 },
53         { 0x00910001, 0xC0000101 },
54         { 0x00b70001, 0xc0000035 },
55         { 0x00e70001, 0xc00000ab },
56         { 0x00e80001, 0xc00000b1 },
57         { 0x00e90001, 0xc00000b0 },
58         { 0x00ea0001, 0xc0000016 },
59         { 0x08bf0002, 0xC0000193 },
60         { 0x08c00002, 0xC0000070 },
61         { 0x08c10002, 0xC000006f },
62         { 0x08c20002, 0xC0000071 }
63     };
64
65     /* These aren't really used by jCIFS -- the map above is used
66      * to immediately map to NTSTATUS codes.
67      */

68     static final String JavaDoc[] DOS_ERROR_MESSAGES = {
69         "The operation completed successfully.",
70         "Incorrect function.",
71         "Incorrect function.",
72         "The system cannot find the file specified.",
73         "Bad password.",
74         "The system cannot find the path specified.",
75         "reserved",
76         "The client does not have the necessary access rights to perform the requested function.",
77         "Access is denied.",
78         "The TID specified was invalid.",
79         "The handle is invalid.",
80         "The network name cannot be found.",
81         "Not enough storage is available to process this command.",
82         "The media is write protected.",
83         "The device is not ready.",
84         "A device attached to the system is not functioning.",
85         "A device attached to the system is not functioning.",
86         "The process cannot access the file because it is being used by another process.",
87         "The process cannot access the file because it is being used by another process.",
88         "The process cannot access the file because another process has locked a portion of the file.",
89         "The disk is full.",
90         "A duplicate name exists on the network.",
91         "The network name cannot be found.",
92         "ERRnomoreconn.",
93         "The file exists.",
94         "The parameter is incorrect.",
95         "Too many Uids active on this session.",
96         "The pipe has been ended.",
97         "The filename, directory name, or volume label syntax is incorrect.",
98         "The directory is not empty.",
99         "Cannot create a file when that file already exists.",
100         "All pipe instances are busy.",
101         "The pipe is being closed.",
102         "No process is on the other end of the pipe.",
103         "More data is available.",
104         "This user account has expired.",
105         "The user is not allowed to log on from this workstation.",
106         "The user is not allowed to log on at this time.",
107         "The password of this user has expired."
108     };
109 }
110
111
Popular Tags