提交 8615b43b authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved error messages

上级 0bb58ce0
...@@ -125,7 +125,7 @@ public class LobStorageMap implements LobStorageInterface { ...@@ -125,7 +125,7 @@ public class LobStorageMap implements LobStorageInterface {
} }
return createLob(in, type); return createLob(in, type);
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.OBJECT_CLOSED); throw DbException.get(ErrorCode.OBJECT_CLOSED, e);
} catch (IOException e) { } catch (IOException e) {
throw DbException.convertIOException(e, null); throw DbException.convertIOException(e, null);
} }
...@@ -163,7 +163,7 @@ public class LobStorageMap implements LobStorageInterface { ...@@ -163,7 +163,7 @@ public class LobStorageMap implements LobStorageInterface {
lob.getTableId(), lob.getLobId(), null, in.getLength()); lob.getTableId(), lob.getLobId(), null, in.getLength());
return lob; return lob;
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
throw DbException.get(ErrorCode.OBJECT_CLOSED); throw DbException.get(ErrorCode.OBJECT_CLOSED, e);
} catch (IOException e) { } catch (IOException e) {
throw DbException.convertIOException(e, null); throw DbException.convertIOException(e, null);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论