MCPcopy Create free account
hub / github.com/apache/fory / processCopyError

Method processCopyError

java/fory-core/src/main/java/org/apache/fory/Fory.java:396–409  ·  view source on GitHub ↗
(Throwable e)

Source from the content-addressed store, hash-verified

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) {

Callers 1

copyMethod · 0.95

Calls 2

copyRefMethod · 0.80

Tested by

no test coverage detected