Chat SDK for Android v1.1.0
agora java chat SDK
Public Member Functions | Protected Attributes | List of all members
io.agora.exceptions.ChatException Class Reference
Inheritance diagram for io.agora.exceptions.ChatException:

Public Member Functions

 ChatException (String desc)
 ChatException (EMAError error)
 ChatException (String desc, Throwable cause)
 ChatException (int errorCode, String desc)
int getErrorCode ()
String getDescription ()
void setErrorCode (int errorCode)

Protected Attributes

int errorCode = -1
String desc = ""

Detailed Description

The exception class that inherits from Exception.

Constructor & Destructor Documentation

◆ ChatException() [1/3]

io.agora.exceptions.ChatException.ChatException ( String  desc)

Constructs an exception with the given description.

descThe exception description.

◆ ChatException() [2/3]

io.agora.exceptions.ChatException.ChatException ( String  desc,
Throwable  cause 

Constructs an exception with the given description and exception cause.

descThe exception description.
causeThe exception cause.

◆ ChatException() [3/3]

io.agora.exceptions.ChatException.ChatException ( int  errorCode,
String  desc 

Constructs an exception with the given description and error code.

errorCodeThe error code.
descThe exception description.

Member Function Documentation

◆ getDescription()

String io.agora.exceptions.ChatException.getDescription ( )

Gets the exception description.

The exception description.

◆ getErrorCode()

int io.agora.exceptions.ChatException.getErrorCode ( )

Gets the error code.

The error code.

◆ setErrorCode()

void io.agora.exceptions.ChatException.setErrorCode ( int  errorCode)

Sets the error code.

errorCodeThe error code to set.

The documentation for this class was generated from the following file: