ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [14/19] ignite git commit: Improved exception handling.
Date Fri, 02 Dec 2016 09:25:20 GMT
Improved exception handling.


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

Branch: refs/heads/master
Commit: e9ace7730773a6d4a1d30b271854f1fe8a7ba632
Parents: 0666910
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Fri Dec 2 16:06:41 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Fri Dec 2 16:06:41 2016 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java | 4 ++--
 .../ignite/marshaller/optimized/OptimizedMarshaller.java     | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e9ace773/modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
b/modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
index 54172dc..06b7109 100644
--- a/modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
+++ b/modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java
@@ -121,8 +121,8 @@ public class JdkMarshaller extends AbstractNodeNameAwareMarshaller {
         }
         catch (ClassNotFoundException e) {
             throw new IgniteCheckedException("Failed to find class with given class loader
for unmarshalling " +
-                "(make sure same versions of all classes are available on all nodes or enable
peer-class-loading): " +
-                clsLdr, e);
+                "(make sure same versions of all classes are available on all nodes or enable
peer-class-loading) " +
+                "[clsLdr=" + clsLdr + ", cls=" + e.getMessage() + "]", e);
         }
         catch (Exception e) {
             throw new IgniteCheckedException("Failed to deserialize object with given class
loader: " + clsLdr, e);

http://git-wip-us.apache.org/repos/asf/ignite/blob/e9ace773/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedMarshaller.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedMarshaller.java
b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedMarshaller.java
index 467dddf..6d57864 100644
--- a/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedMarshaller.java
+++ b/modules/core/src/main/java/org/apache/ignite/marshaller/optimized/OptimizedMarshaller.java
@@ -219,8 +219,8 @@ public class OptimizedMarshaller extends AbstractNodeNameAwareMarshaller
{
         }
         catch (ClassNotFoundException e) {
             throw new IgniteCheckedException("Failed to find class with given class loader
for unmarshalling " +
-                "(make sure same versions of all classes are available on all nodes or enable
peer-class-loading): " +
-                clsLdr, e);
+                "(make sure same versions of all classes are available on all nodes or enable
peer-class-loading) " +
+                "[clsLdr=" + clsLdr + ", cls=" + e.getMessage() + "]", e);
         }
         catch (Exception e) {
             throw new IgniteCheckedException("Failed to deserialize object with given class
loader: " + clsLdr, e);
@@ -248,8 +248,8 @@ public class OptimizedMarshaller extends AbstractNodeNameAwareMarshaller
{
         }
         catch (ClassNotFoundException e) {
             throw new IgniteCheckedException("Failed to find class with given class loader
for unmarshalling " +
-                "(make sure same version of all classes are available on all nodes or enable
peer-class-loading): " +
-                clsLdr, e);
+                "(make sure same version of all classes are available on all nodes or enable
peer-class-loading)" +
+                " [clsLdr=" + clsLdr + ", cls=" + e.getMessage() + "]", e);
         }
         catch (Exception e) {
             throw new IgniteCheckedException("Failed to deserialize object with given class
loader: " + clsLdr, e);


Mime
View raw message