From 1de87db5cee7a3c15d086998f9480f503f0084f7 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 8 Dec 2006 01:13:37 +0000 Subject: Improved message for UnsupportedTypeException. --- src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepository.java | 2 +- .../java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepository.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepository.java index f9c6d25..522bb2d 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCRepository.java @@ -212,7 +212,7 @@ public class JDBCRepository synchronized (mAllTxnMgrs) { JDBCStorableInfo info = examineStorable(type); if (!info.isSupported()) { - throw new UnsupportedTypeException(type); + throw new UnsupportedTypeException("Independent type not supported", type); } return new JDBCStorage(JDBCRepository.this, info); } diff --git a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java index 11c11b6..5edc42c 100644 --- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java @@ -360,7 +360,7 @@ class ReplicatedRepository if (storageFor(type) instanceof ReplicatedStorage) { trigger = ((ReplicatedStorage) storageFor(type)).getTrigger(); } else { - throw new UnsupportedTypeException(type); + throw new UnsupportedTypeException("Storable type is not replicated", type); } Storage replicaStorage, masterStorage; -- cgit v1.2.3