[jboss-cvs] JBossCache/src/org/jboss/cache/marshall ...
Manik Surtani
msurtani at jboss.com
Wed Feb 28 13:22:54 EST 2007
User: msurtani
Date: 07/02/28 13:22:54
Modified: src/org/jboss/cache/marshall MethodDeclarations.java
Log:
JBCACHE-979
Revision Changes Path
1.36 +7 -6 JBossCache/src/org/jboss/cache/marshall/MethodDeclarations.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MethodDeclarations.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/marshall/MethodDeclarations.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- MethodDeclarations.java 7 Feb 2007 22:06:54 -0000 1.35
+++ MethodDeclarations.java 28 Feb 2007 18:22:54 -0000 1.36
@@ -11,6 +11,7 @@
import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
import org.jboss.cache.Node;
+import org.jboss.cache.CacheException;
import org.jboss.cache.buddyreplication.BuddyGroup;
import org.jboss.cache.lock.NodeLock;
import org.jboss.cache.optimistic.DataVersion;
@@ -31,7 +32,7 @@
* allowing lookup operations both ways.
*
* @author <a href="galder.zamarreno at jboss.com">Galder Zamarreno</a>
- * @version $Revision: 1.35 $
+ * @version $Revision: 1.36 $
*/
public class MethodDeclarations
{
@@ -403,7 +404,7 @@
{
log.error("Method id " + id + " is not registered");
}
- throw new RuntimeException("Method id " + id + " is not registered with " + CacheMarshaller200.class);
+ throw new CacheException("Method id " + id + " is not registered with " + CacheMarshaller200.class);
}
return method;
}
@@ -460,12 +461,12 @@
case moveMethodLocal_id:
return moveMethodLocal;
default:
- throw new RuntimeException("Unrecognised method id " + methodId);
+ throw new CacheException("Unrecognised method id " + methodId);
}
}
else
{
- throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
+ throw new CacheException("Attempting to look up a versioned equivalent of a non-crud method");
}
}
@@ -493,12 +494,12 @@
case moveMethodLocal_id:
return moveMethodLocal;
default:
- throw new RuntimeException("Unrecognised method id " + methodId);
+ throw new CacheException("Unrecognised method id " + methodId);
}
}
else
{
- throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
+ throw new CacheException("Attempting to look up a versioned equivalent of a non-crud method");
}
}
More information about the jboss-cvs-commits
mailing list