01: /* jcifs smb client library in Java
02: * Copyright (C) 2004 "Michael B. Allen" <jcifs at samba dot org>
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * 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 com.knowgate.jcifs.smb;
20:
21: public interface DosError {
22:
23: static final int[][] DOS_ERROR_CODES = {
24: { 0x00000000, 0x00000000 }, { 0x00010001, 0xc0000002 },
25: { 0x00010002, 0xc0000002 }, { 0x00020001, 0xc000000f },
26: { 0x00020002, 0xc000006a }, { 0x00030001, 0xc000003a },
27: { 0x00030002, 0xc00000cb }, { 0x00040002, 0xc00000ca },
28: { 0x00050001, 0xc0000022 }, { 0x00050002, 0xc00000c9 },
29: { 0x00060001, 0xc0000008 }, { 0x00060002, 0xc00000cc },
30: { 0x00080001, 0xc000009a }, { 0x00130003, 0xc00000a2 },
31: { 0x00150003, 0xc0000013 }, { 0x001f0001, 0xc0000001 },
32: { 0x001f0003, 0xc0000001 }, { 0x00200001, 0xc0000043 },
33: { 0x00200003, 0xc0000043 }, { 0x00210003, 0xc0000054 },
34: { 0x00270003, 0xc000007f }, { 0x00340001, 0xC00000bd },
35: { 0x00430001, 0xc00000cc }, { 0x00470001, 0xC00000d0 },
36: { 0x00500001, 0xc0000035 }, { 0x00570001, 0xc0000003 },
37: { 0x005a0002, 0xc00000ce }, { 0x006d0001, 0xC000014b },
38: { 0x007b0001, 0xc0000033 }, { 0x00910001, 0xC0000101 },
39: { 0x00b70001, 0xc0000035 }, { 0x00e70001, 0xc00000ab },
40: { 0x00e80001, 0xc00000b1 }, { 0x00e90001, 0xc00000b0 },
41: { 0x00ea0001, 0xc0000016 }, { 0x08bf0002, 0xC0000193 },
42: { 0x08c00002, 0xC0000070 }, { 0x08c10002, 0xC000006f },
43: { 0x08c20002, 0xC0000071 } };
44:
45: /* These aren't really used by jCIFS -- the map above is used
46: * to immediately map to NTSTATUS codes.
47: */
48: static final String[] DOS_ERROR_MESSAGES = {
49: "The operation completed successfully.",
50: "Incorrect function.",
51: "Incorrect function.",
52: "The system cannot find the file specified.",
53: "Bad password.",
54: "The system cannot find the path specified.",
55: "reserved",
56: "The client does not have the necessary access rights to perform the requested function.",
57: "Access is denied.",
58: "The TID specified was invalid.",
59: "The handle is invalid.",
60: "The network name cannot be found.",
61: "Not enough storage is available to process this command.",
62: "The media is write protected.",
63: "The device is not ready.",
64: "A device attached to the system is not functioning.",
65: "A device attached to the system is not functioning.",
66: "The process cannot access the file because it is being used by another process.",
67: "The process cannot access the file because it is being used by another process.",
68: "The process cannot access the file because another process has locked a portion of the file.",
69: "The disk is full.",
70: "A duplicate name exists on the network.",
71: "The network name cannot be found.",
72: "ERRnomoreconn.",
73: "The file exists.",
74: "The parameter is incorrect.",
75: "Too many Uids active on this session.",
76: "The pipe has been ended.",
77: "The filename, directory name, or volume label syntax is incorrect.",
78: "The directory is not empty.",
79: "Cannot create a file when that file already exists.",
80: "All pipe instances are busy.",
81: "The pipe is being closed.",
82: "No process is on the other end of the pipe.",
83: "More data is available.",
84: "This user account has expired.",
85: "The user is not allowed to log on from this workstation.",
86: "The user is not allowed to log on at this time.",
87: "The password of this user has expired." };
88: }
|