Agora Java API Reference for Android

Public Member Functions | Protected Member Functions | List of all members
io.agora.rte.Error Class Reference

This class provides methods to retrieve error codes and error messages. More...

## Public Member Functions
| Error (long nativeHandle)
long | getNativeHandle ()
Constants.ErrorCode | code ()
| Gets the error code returned from an API call. More...
String | message ()
| Retrieves detailed error information. More...

## Protected Member Functions
void | finalize ()

## Detailed Description

This class provides methods to retrieve error codes and error messages.

Since
  v4.4.0

## Member Function Documentation

## ◆ code()

Constants.ErrorCode io.agora.rte.Error.code | ( |  | ) |

Gets the error code returned from an API call.

Since
  v4.4.0

Call timing: You can call this method to get the error code when the API call fails.

Returns
  The error code. See `ErrorCode` for details.

## ◆ message()

String io.agora.rte.Error.message | ( |  | ) |

Retrieves detailed error information.

Since
  v4.4.0

Call timing: When the API call fails, you can call this method to retrieve error information to help troubleshoot the issue.

Returns
  Error information.