晴川云鸿蒙OS教程:鸿蒙OS StreamCorruptedException

StreamCorruptedException

java.lang.Object

|—java.lang.Throwable

|—|—java.lang.Exception

|—|—|—java.io.IOException

|—|—|—|—java.io.ObjectStreamException

|—|—|—|—|—java.io.StreamCorruptedException

public class StreamCorruptedException
extends ObjectStreamException

当从对象流中读取的控制信息违反内部一致性检查时抛出。

Since:

JDK1.1

构造函数摘要

构造函数 描述
StreamCorruptedException() 创建一个 StreamCorruptedException 并列出抛出的原因。
StreamCorruptedException(String reason) 创建一个 StreamCorruptedException 并列出抛出的原因。

方法总结

从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从类 java.lang.Throwable 继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

构造函数详细信息

StreamCorruptedException

public StreamCorruptedException(String reason)

创建一个 StreamCorruptedException 并列出抛出的原因。

参数:

参数名称 参数描述
reason 描述异常原因的字符串。

StreamCorruptedException

public StreamCorruptedException()

创建一个 StreamCorruptedException 并列出抛出的原因。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
相关推荐
  • 暂无相关文章
评论 抢沙发

请登录后发表评论

    暂无评论内容