java.io.ObjectInputStream.readException()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中java.io.ObjectInputStream.readException()方法的一些代码示例,展示了ObjectInputStream.readException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.readException()方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:readException

ObjectInputStream.readException介绍

[英]Read the next item assuming it is an exception. The exception is not a regular instance in the object graph, but the exception instance that happened (if any) when dumping the original object graph. The set of seen objects will be reset just before and just after loading this exception object.

When exceptions are found normally in the object graph, they are loaded as a regular object, and not by this method. In that case, the set of "known objects" is not reset.
[中]阅读下一项,假设它是一个例外。异常不是对象图中的常规实例,而是转储原始对象图时发生的异常实例(如果有)。在加载此异常对象之前和之后,将重置所看到的对象集。
当在对象图中正常发现异常时,它们将作为常规对象加载,而不是通过此方法加载。在这种情况下,“已知对象”的集合不会重置。

代码示例

代码示例来源:origin: robovm/robovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: robovm/robovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: ibinti/bugvm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: MobiVM/robovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.gluonhq/robovm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.bugvm/bugvm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.jtransc/jtransc-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: FlexoVM/flexovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: MobiVM/robovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.jtransc/jtransc-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: ibinti/bugvm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: FlexoVM/flexovm

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.bugvm/bugvm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

代码示例来源:origin: com.gluonhq/robovm-rt

return null;
case TC_EXCEPTION:
  Exception exc = readException();
  throw new WriteAbortedException("Read an exception", exc);
case TC_RESET:

相关文章

ObjectInputStream类方法