diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-05-04 17:21:57 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-05-04 17:21:57 +0000 |
commit | b265cada7b4901dfaca9f97789291c43599ddac0 (patch) | |
tree | 6383069c12304d7502685dc89565757e4cf937f4 /src/main/java/com/amazon/carbonado/spi | |
parent | f1ca557cc885fd86859901f3acd2897919ae1b72 (diff) |
Introduce PersistInterruptedException.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r-- | src/main/java/com/amazon/carbonado/spi/ExceptionTransformer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/ExceptionTransformer.java b/src/main/java/com/amazon/carbonado/spi/ExceptionTransformer.java index 2064e68..e660162 100644 --- a/src/main/java/com/amazon/carbonado/spi/ExceptionTransformer.java +++ b/src/main/java/com/amazon/carbonado/spi/ExceptionTransformer.java @@ -24,6 +24,7 @@ import java.nio.channels.ClosedByInterruptException; import com.amazon.carbonado.FetchException;
import com.amazon.carbonado.FetchInterruptedException;
import com.amazon.carbonado.PersistException;
+import com.amazon.carbonado.PersistInterruptedException;
import com.amazon.carbonado.RepositoryException;
/**
@@ -158,6 +159,9 @@ public class ExceptionTransformer { if (e instanceof PersistException) {
return (PersistException) e;
}
+ if (e instanceof InterruptedIOException) {
+ return new PersistInterruptedException(e);
+ }
if (e instanceof FetchException) {
return ((FetchException) e).toPersistException();
}
|