Commits

Jed Wesley-Smith  committed 0a5efd3

properly implement Serializable

  • Participants
  • Parent commits 97b300f
  • Branches immutable-promise

Comments (0)

Files changed (2)

File httpclient-api/src/main/java/com/atlassian/httpclient/api/ResponseTransformationException.java

 
 public final class ResponseTransformationException extends RuntimeException
 {
+    private static final long serialVersionUID = -7126064602250176471L;
+
     public ResponseTransformationException(Throwable throwable)
     {
         super(throwable);

File httpclient-api/src/main/java/com/atlassian/httpclient/api/UnexpectedResponseException.java

  */
 public class UnexpectedResponseException extends RuntimeException
 {
-    private Response response;
+    private static final long serialVersionUID = 2485901022682805702L;
+
+    // Response is not Serializable
+    private transient Response response;
 
     /**
      * Creates a new exception for the given response.