@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_errorCode = true && (isSetErrorCode()); list.add(present_errorCode); if (present_errorCode) list.add(errorCode.getValue()); boolean present_message = true && (isSetMessage()); list.add(present_message); if (present_message) list.add(message); return list.hashCode(); }
case 1: // ERROR_CODE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.errorCode = com.linecorp.centraldogma.internal.thrift.ErrorCode.findByValue(iprot.readI32()); struct.setErrorCodeIsSet(true); } else {
public boolean equals(CentralDogmaException that) { if (that == null) return false; boolean this_present_errorCode = true && this.isSetErrorCode(); boolean that_present_errorCode = true && that.isSetErrorCode(); if (this_present_errorCode || that_present_errorCode) { if (!(this_present_errorCode && that_present_errorCode)) return false; if (!this.errorCode.equals(that.errorCode)) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } return true; }
case 1: // ERROR_CODE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.errorCode = com.linecorp.centraldogma.internal.thrift.ErrorCode.findByValue(iprot.readI32()); struct.setErrorCodeIsSet(true); } else {
public boolean equals(CentralDogmaException that) { if (that == null) return false; boolean this_present_errorCode = true && this.isSetErrorCode(); boolean that_present_errorCode = true && that.isSetErrorCode(); if (this_present_errorCode || that_present_errorCode) { if (!(this_present_errorCode && that_present_errorCode)) return false; if (!this.errorCode.equals(that.errorCode)) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_errorCode = true && (isSetErrorCode()); list.add(present_errorCode); if (present_errorCode) list.add(errorCode.getValue()); boolean present_message = true && (isSetMessage()); list.add(present_message); if (present_message) list.add(message); return list.hashCode(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, CentralDogmaException struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.errorCode = com.linecorp.centraldogma.internal.thrift.ErrorCode.findByValue(iprot.readI32()); struct.setErrorCodeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } } }
if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e); if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName); if (ctx != null) { logger.warn("{} Unexpected exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.warn("Unexpected exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, CentralDogmaException struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.errorCode = com.linecorp.centraldogma.internal.thrift.ErrorCode.findByValue(iprot.readI32()); struct.setErrorCodeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } } }
if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e); if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName); if (ctx != null) { logger.warn("{} Unexpected exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.warn("Unexpected exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e);
if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e); if (ctx != null) { logger.debug("{} Exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName); } else { logger.debug("Exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName); if (ctx != null) { logger.warn("{} Unexpected exception with error code {} ({}) from: {}()", ctx, errorCode, errorCode.getValue(), operationName, e); } else { logger.warn("Unexpected exception with error code {} ({}) from: {}()", errorCode, errorCode.getValue(), operationName, e);
public void write(org.apache.thrift.protocol.TProtocol oprot, CentralDogmaException struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.errorCode != null) { oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); oprot.writeI32(struct.errorCode.getValue()); oprot.writeFieldEnd(); } if (struct.message != null) { if (struct.isSetMessage()) { oprot.writeFieldBegin(MESSAGE_FIELD_DESC); oprot.writeString(struct.message); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, CentralDogmaException struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.errorCode != null) { oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC); oprot.writeI32(struct.errorCode.getValue()); oprot.writeFieldEnd(); } if (struct.message != null) { if (struct.isSetMessage()) { oprot.writeFieldBegin(MESSAGE_FIELD_DESC); oprot.writeString(struct.message); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CentralDogmaException struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.errorCode.getValue()); BitSet optionals = new BitSet(); if (struct.isSetMessage()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessage()) { oprot.writeString(struct.message); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, CentralDogmaException struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.errorCode.getValue()); BitSet optionals = new BitSet(); if (struct.isSetMessage()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessage()) { oprot.writeString(struct.message); } }