Package io.agora.rtm
Class ErrorInfo
java.lang.Object
io.agora.rtm.ErrorInfo
The warning or error code and description.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorInfo(RtmConstants.RtmErrorCode errorCode) Constructs a new instance of RtmErrorCode with the specified errorCode.ErrorInfo(RtmConstants.RtmErrorCode errorCode, String reason) Constructs a new instance of RtmErrorCode with the specified errorCode and specified reason detail.ErrorInfo(RtmConstants.RtmErrorCode errorCode, String reason, String operation) Constructs a new instance of RtmErrorCode with the specified errorCode, specified reason detail and specified operation. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the warning or error code.Retrieves the warning or error reason.Retrieves current operation.toString()
-
Constructor Details
-
ErrorInfo
Constructs a new instance of RtmErrorCode with the specified errorCode.- Parameters:
errorCode- The error code of ErrorInfo(which is saved for later retrieval by thegetErrorCode()method)
-
ErrorInfo
Constructs a new instance of RtmErrorCode with the specified errorCode and specified reason detail.- Parameters:
errorCode- The error code of ErrorInfo (which is saved for later retrieval by thegetErrorCode()method)reason- A string describing the reason for operation operation failure(which is saved for later retrieval by thegetErrorReason()method)
-
ErrorInfo
Constructs a new instance of RtmErrorCode with the specified errorCode, specified reason detail and specified operation.- Parameters:
errorCode- The error code of ErrorInfo (which is saved for later retrieval by thegetErrorCode()method)reason- A string describing the reason for operation failure(which is saved for later retrieval by thegetErrorReason()method)operation- Current operation(which is saved for later retrieval by thegetOperation()method)
-
-
Method Details
-
getErrorCode
Retrieves the warning or error code.- Returns:
- The warning or error code. See
RtmConstants.RtmErrorCodefor a list of warning or error codes.
-
getErrorReason
Retrieves the warning or error reason.- Returns:
- The warning or error reason. See
RtmConstants.RtmErrorCodefor a list of warning or error codes.
-
getOperation
Retrieves current operation.- Returns:
- current operation.
-
toString
-