From f3b9507f4d655c311bcd3f019cdcd694584bb0de Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 7 Jul 2008 07:32:27 +0000 Subject: Don't wrap MalformedArgumentExceptions. --- src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat') diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java index b2b1271..9abdd5d 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java @@ -32,6 +32,7 @@ import com.amazon.carbonado.ConfigurationException; import com.amazon.carbonado.Cursor; import com.amazon.carbonado.FetchException; import com.amazon.carbonado.IsolationLevel; +import com.amazon.carbonado.MalformedArgumentException; import com.amazon.carbonado.PersistException; import com.amazon.carbonado.Repository; import com.amazon.carbonado.RepositoryException; @@ -342,6 +343,8 @@ abstract class BDBRepository extends AbstractRepository { try { return createBDBStorage(type); + } catch (MalformedArgumentException e) { + throw e; } catch (Exception e) { throw toRepositoryException(e); } -- cgit v1.2.3