1 /* jcifs msrpc client library in Java 2 * Copyright (C) 2006 "Michael B. Allen" <jcifs at samba dot org> 3 * "Eric Glass" <jcifs at samba dot org> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 20 package jcifs.dcerpc; 21 22 public interface DcerpcError { 23 24 public static final int DCERPC_FAULT_OTHER = 0x00000001; 25 public static final int DCERPC_FAULT_ACCESS_DENIED = 0x00000005; 26 public static final int DCERPC_FAULT_CANT_PERFORM = 0x000006D8; 27 public static final int DCERPC_FAULT_NDR = 0x000006F7; 28 public static final int DCERPC_FAULT_INVALID_TAG = 0x1C000006; 29 public static final int DCERPC_FAULT_CONTEXT_MISMATCH = 0x1C00001A; 30 public static final int DCERPC_FAULT_OP_RNG_ERROR = 0x1C010002; 31 public static final int DCERPC_FAULT_UNK_IF = 0x1C010003; 32 public static final int DCERPC_FAULT_PROTO_ERROR = 0x1c01000b; 33 34 static final int[] DCERPC_FAULT_CODES = { 35 DCERPC_FAULT_OTHER, 36 DCERPC_FAULT_ACCESS_DENIED, 37 DCERPC_FAULT_CANT_PERFORM, 38 DCERPC_FAULT_NDR, 39 DCERPC_FAULT_INVALID_TAG, 40 DCERPC_FAULT_CONTEXT_MISMATCH, 41 DCERPC_FAULT_OP_RNG_ERROR, 42 DCERPC_FAULT_UNK_IF, 43 DCERPC_FAULT_PROTO_ERROR 44 }; 45 46 static final String[] DCERPC_FAULT_MESSAGES = { 47 "DCERPC_FAULT_OTHER", 48 "DCERPC_FAULT_ACCESS_DENIED", 49 "DCERPC_FAULT_CANT_PERFORM", 50 "DCERPC_FAULT_NDR", 51 "DCERPC_FAULT_INVALID_TAG", 52 "DCERPC_FAULT_CONTEXT_MISMATCH", 53 "DCERPC_FAULT_OP_RNG_ERROR", 54 "DCERPC_FAULT_UNK_IF", 55 "DCERPC_FAULT_PROTO_ERROR" 56 }; 57 } 58 59