/** * Performs a deep copy on <i>other</i>. */ public throwsError_result(throwsError_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetEx()) { this.ex = new ThriftSecurityException(other.ex); } }
public void send_throwsError() throws org.apache.thrift.TException { throwsError_args args = new throwsError_args(); sendBase("throwsError", args); }
public throwsError_result getResult(I iface, throwsError_args args) throws org.apache.thrift.TException { throwsError_result result = new throwsError_result(); try { result.success = iface.throwsError(); result.setSuccessIsSet(true); } catch (ThriftSecurityException ex) { result.ex = ex; } return result; } }
public success_result getResult(I iface, success_args args) throws org.apache.thrift.TException { success_result result = new success_result(); result.success = iface.success(); result.setSuccessIsSet(true); return result; } }
public fails_result getResult(I iface, fails_args args) throws org.apache.thrift.TException { fails_result result = new fails_result(); result.success = iface.fails(); result.setSuccessIsSet(true); return result; } }
/** * @param e * constructs an exception from a thrift exception */ public TableExistsException(ThriftTableOperationException e) { this(e.getTableId(), e.getTableName(), e.getDescription(), e); } }
private static <I extends AsyncIface> java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) { processMap.put("success", new success()); processMap.put("fails", new fails()); processMap.put("throwsError", new throwsError()); return processMap; }
private static <I extends Iface> java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { processMap.put("success", new success()); processMap.put("fails", new fails()); processMap.put("throwsError", new throwsError()); return processMap; }
public void send_success() throws org.apache.thrift.TException { success_args args = new success_args(); sendBase("success", args); }
public void send_fails() throws org.apache.thrift.TException { fails_args args = new fails_args(); sendBase("fails", args); }
public boolean success() throws org.apache.thrift.TException { send_success(); return recv_success(); }
@Override public void clear() { setSuccessIsSet(false); this.success = false; this.ex = null; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof ThriftTableOperationException) return this.equals((ThriftTableOperationException)that); return false; }
@Override public void clear() { setSuccessIsSet(false); this.success = false; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof fails_result) return this.equals((fails_result)that); return false; }
@Override public void clear() { setSuccessIsSet(false); this.success = false; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof throwsError_args) return this.equals((throwsError_args)that); return false; }
public throwsError_result( boolean success, ThriftSecurityException ex) { this(); this.success = success; setSuccessIsSet(true); this.ex = ex; }