KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > knowgate > jcifs > smb > WinError


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 com.knowgate.jcifs.smb;
20
21 public interface WinError {
22
23     /* Don't bother to edit this. Everthing within the interface
24      * block is automatically generated from the ntstatus package.
25      */

26
27     public static final int ERROR_SUCCESS = 0;
28     public static final int ERROR_REQ_NOT_ACCEP = 71;
29     public static final int ERROR_BAD_PIPE = 230;
30     public static final int ERROR_PIPE_BUSY = 231;
31     public static final int ERROR_NO_DATA = 232;
32     public static final int ERROR_PIPE_NOT_CONNECTED = 233;
33     public static final int ERROR_MORE_DATA = 234;
34     public static final int ERROR_NO_BROWSER_SERVERS_FOUND = 6118;
35
36     static final int[] WINERR_CODES = {
37         ERROR_SUCCESS,
38         ERROR_REQ_NOT_ACCEP,
39         ERROR_BAD_PIPE,
40         ERROR_PIPE_BUSY,
41         ERROR_NO_DATA,
42         ERROR_PIPE_NOT_CONNECTED,
43         ERROR_MORE_DATA,
44         ERROR_NO_BROWSER_SERVERS_FOUND
45     };
46
47     static final String JavaDoc[] WINERR_MESSAGES = {
48         "The operation completed successfully.",
49         "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.",
50         "The pipe state is invalid.",
51         "All pipe instances are busy.",
52         "The pipe is being closed.",
53         "No process is on the other end of the pipe.",
54         "More data is available.",
55         "The list of servers for this workgroup is not currently available."
56     };
57 }
58
59
Popular Tags