xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
InterruptedException类 参考
类 InterruptedException 继承关系图:
Inheritance graph
InterruptedException 的协作图:
Collaboration graph

Public 成员函数

额外继承的成员函数

详细描述

自定义异常类InterruptedException,继承自Exception类 用于处理程序执行过程中被中断的情况

在文件 InterruptedException.x5 行定义.

构造及析构函数说明

◆ InterruptedException() [1/2]

无参构造函数,创建一个InterruptedException实例

◆ InterruptedException() [2/2]

带字符串参数的构造函数,用于创建带有特定错误信息的InterruptedException实例

参数
message异常的描述信息字符串

成员函数说明

◆ getErrorCode()

final long getErrorCode ( )

获取错误的代码

返回
返回错误代码的长整型数值

重载 Exception .

◆ getMessage()

final String getMessage ( )

获取异常信息的描述

返回
返回异常信息的字符串,使用@NotNilptr注解确保返回非空指针

重载 Exception .