Propogate error

This commit is contained in:
Jesse Boyd 2018-08-12 21:18:46 +10:00
parent fa7fc22398
commit 055a08b741
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 3 additions and 4 deletions

View File

@ -453,7 +453,7 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
return block;
} catch (IndexOutOfBoundsException ignore) {
} catch (Exception e) {
MainUtil.handleError(e);
throw new RuntimeException(e);
}
return EditSession.nullBlock;
}
@ -492,7 +492,7 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
return block;
} catch (IndexOutOfBoundsException ignore) {
} catch (Exception e) {
MainUtil.handleError(e);
throw new RuntimeException(e);
}
return EditSession.nullBlock;
}
@ -521,9 +521,8 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
}
return true;
} catch (Exception e) {
MainUtil.handleError(e);
throw new RuntimeException(e);
}
return false;
}
@Override