# AgoraRtcException (/zh-CN/api-reference/rtc/flutter/class-agorartcexception)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_agorartcexception__prototype"></a>

```dart
class AgoraRtcException implements Exception {
  AgoraRtcException({required this.code, this.message});
  final int code;
  final String? message;
  @override
  String toString() => 'AgoraRtcException($code, $message)';
}
```

<a id="class_agorartcexception__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="code"></a>
<Parameter name="code">

错误码，详见 [ErrorCodeType](/zh-CN/api-reference/rtc/flutter/enum-errorcodetype)。

</Parameter>
<a id="message"></a>
<Parameter name="message">

错误描述。

</Parameter>
</ParameterList>
