/** * * @return result exception, if the call failed */ public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(this.result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
/** * * @return the root cause */ @Deprecated public Throwable getRootCause () { return getCause(); }
public SamrPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch (DcerpcException de) { if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR) throw de; MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } }
public SamrPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch (DcerpcException de) { if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR) throw de; MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
public SamrPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch (DcerpcException de) { if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR) throw de; MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } }
/** * * @return the root cause */ @Deprecated public Throwable getRootCause () { return getCause(); }
/** * * @return result exception, if the call failed */ public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(this.result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
public SamrPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch (DcerpcException de) { if (de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR) throw de; MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException(int error) { super(getMessageByDcerpcError(error)); this.error = error; } public DcerpcException(String msg) {
public SamrPolicyHandle ( DcerpcHandle handle, String server, int access ) throws IOException { this.handle = handle; if ( server == null ) { server = "\\\\"; } MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch ( DcerpcException de ) { if ( de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR ) { throw de; } MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } this.opened = true; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException ( int error ) { super(getMessageByDcerpcError(error)); this.error = error; }
public SamrPolicyHandle ( DcerpcHandle handle, String server, int access ) throws IOException { this.handle = handle; if ( server == null ) { server = "\\\\"; } MsrpcSamrConnect4 rpc = new MsrpcSamrConnect4(server, access, this); try { handle.sendrecv(rpc); } catch ( DcerpcException de ) { if ( de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR ) { throw de; } MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } this.opened = true; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
DcerpcException ( int error ) { super(getMessageByDcerpcError(error)); this.error = error; }