(Throwable e)
| 394 | } |
| 395 | |
| 396 | private ForyException processCopyError(Throwable e) { |
| 397 | if (!config.copyRef()) { |
| 398 | String msg = |
| 399 | "Object may contain circular references, please enable ref tracking " |
| 400 | + "by `ForyBuilder#withRefCopy(true)`"; |
| 401 | if (e instanceof StackOverflowError) { |
| 402 | e = ExceptionUtils.trySetStackOverflowErrorMessage((StackOverflowError) e, msg); |
| 403 | } |
| 404 | } |
| 405 | if (!(e instanceof ForyException)) { |
| 406 | throw new CopyException(e); |
| 407 | } |
| 408 | throw (ForyException) e; |
| 409 | } |
| 410 | |
| 411 | @Override |
| 412 | public Object deserialize(byte[] bytes) { |
no test coverage detected