summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java
index efb8dd524..c5848f20d 100644
--- a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java
+++ b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java
@@ -23,12 +23,15 @@ import javax.annotation.Nonnull;
/**
* Thrown when CRUD operation fails.
+ *
+ * Serialization/deserialization of this exception would cause
+ * {@link #getProcessed()} and {@link #getFailed()} to return null.
*/
public class UpdateFailedException extends TranslationException {
private static final long serialVersionUID = 896331856485410043L;
- private final List<DataObjectUpdate> processed;
- private final DataObjectUpdate failed;
+ private transient final List<DataObjectUpdate> processed;
+ private transient final DataObjectUpdate failed;
/**
* @param cause original cause of failure