|
即时通讯 IM API 参考 v1.3.2
Agora Java IM SDK
|
继承自 Exception .
Public 成员函数 | |
| ChatException (String desc) | |
| ChatException (String desc, Throwable cause) | |
| ChatException (int errorCode, String desc) | |
| int | getErrorCode () |
| String | getDescription () |
| void | setErrorCode (int errorCode) |
基于 Exception 的异常类。
| io.agora.exceptions.ChatException.ChatException | ( | String | desc | ) |
用给定的描述构造一个异常。
| desc | 异常信息。 |
| io.agora.exceptions.ChatException.ChatException | ( | String | desc, |
| Throwable | cause | ||
| ) |
用给定的描述和异常的起因构造一个异常。
| desc | 异常描述。 |
| cause | 异常起因。 |
| io.agora.exceptions.ChatException.ChatException | ( | int | errorCode, |
| String | desc | ||
| ) |
用给定的错误码和异常描述构造一个异常。
| errorCode | 错误码。 |
| desc | 异常描述。 |
| String io.agora.exceptions.ChatException.getDescription | ( | ) |
获取异常信息。
| int io.agora.exceptions.ChatException.getErrorCode | ( | ) |
获取错误码。
| void io.agora.exceptions.ChatException.setErrorCode | ( | int | errorCode | ) |
设置错误码。
| errorCode | 错误码。 |