Repository: reef
Updated Branches:
  refs/heads/master 6835369c4 -> 677d86337


[REEF-1452] Make PoisonException Serializable

JIRA:
  [REEF-1452](https://issues.apache.org/jira/browse/REEF-1452)

This closes #1041


Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/677d8633
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/677d8633
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/677d8633

Branch: refs/heads/master
Commit: 677d86337132f080940b34fcf2fb6cfab7f9d490
Parents: 6835369
Author: Julia Wang <[email protected]>
Authored: Thu Jun 9 15:47:37 2016 -0700
Committer: Mariia Mykhailova <[email protected]>
Committed: Thu Jun 9 17:16:58 2016 -0700

----------------------------------------------------------------------
 lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/reef/blob/677d8633/lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs 
b/lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs
index 2717c72..d747a61 100644
--- a/lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs
+++ b/lang/cs/Org.Apache.REEF.Common/Poison/PoisonedEventHandler.cs
@@ -21,6 +21,7 @@ using Org.Apache.REEF.Utilities.Logging;
 using Org.Apache.REEF.Wake.Time.Event;
 using System;
 using System.Reactive;
+using System.Runtime.Serialization;
 using Org.Apache.REEF.Wake.Time;
 
 namespace Org.Apache.REEF.Common.Poison
@@ -94,11 +95,17 @@ namespace Org.Apache.REEF.Common.Poison
     /// Exception thrown by PoisonedEventHandler.
     /// </summary>
     [Private]
+    [Serializable]
     public class PoisonException : Exception
     {
         public PoisonException(string s) : base(s)
         {
         }
+
+        public PoisonException(SerializationInfo info, StreamingContext 
context)
+            : base(info, context)
+        {
+        }
     }
 
     [Private]

Reply via email to