/** * Get binary data for the exception, if it exists. Otherwise, return null. * This is a utility method used in the FailedRuntime constructor and getThrowable() method. * * @param error protobuf error message structure. * @return byte array of the exception or null if exception is missing. */ private static byte[] getData(final RuntimeErrorProto error) { return error.hasException() ? error.getException().toByteArray() : null; } }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasException()) { hash = (37 * hash) + EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getException().hashCode(); } if (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
result = result && getException() .equals(other.getException());
public Builder mergeFrom(com.microsoft.reef.proto.ReefServiceProtos.RuntimeErrorProto other) { if (other == com.microsoft.reef.proto.ReefServiceProtos.RuntimeErrorProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000002; message_ = other.message_; onChanged(); } if (other.hasException()) { setException(other.getException()); } if (other.hasIdentifier()) { bitField0_ |= 0x00000008; identifier_ = other.identifier_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional bytes exception = 3;</code> */ public Builder clearException() { bitField0_ = (bitField0_ & ~0x00000004); exception_ = getDefaultInstance().getException(); onChanged(); return this; }