FormError

public class FormError


Thông tin lỗi về lý do một thao tác trên biểu mẫu không thành công.

Tóm tắt

Loại lồng nhau

@Retention(value = SOURCE)
@IntDef(value = [ErrorCode.INTERNAL_ERROR, ErrorCode.INTERNET_ERROR, ErrorCode.INVALID_OPERATION, ErrorCode.TIME_OUT])
public annotation FormError.ErrorCode

Giá trị mã lỗi.

Trường công khai

final int
final String

Phương thức công khai

int

Lấy mã lỗi.

String

Nhận thông báo mô tả lỗi.

Trường công khai

errorCode

public final int errorCode

tin nhắn

public final String message

Phương thức công khai

getErrorCode

@FormError.ErrorCode
public int getErrorCode()

Lấy mã lỗi. Hãy xem ErrorCode để biết các giá trị có thể có.

getMessage

public String getMessage()

Nhận thông báo mô tả lỗi.