Chat SDK for Android v1.3.1
agora java chat SDK
Public Member Functions | List of all members
io.agora.exceptions.ChatException Class Reference

Inherits Exception.

Public Member Functions

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

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.

Parameters
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.

Parameters
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.

Parameters
errorCodeThe error code.
descThe exception description.

Member Function Documentation

◆ getDescription()

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

Gets the exception description.

Returns
The exception description.

◆ getErrorCode()

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

Gets the error code.

Returns
The error code.

◆ setErrorCode()

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

Sets the error code.

Parameters
errorCodeThe error code to set.

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