Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
IntegrityServiceException
public
class
IntegrityServiceException
extends ApiException
Một trường hợp ngoại lệ cho biết đã xảy ra lỗi với API Tính toàn vẹn.
Hãy xem getErrorCode()
để biết vấn đề cụ thể.
Tóm tắt
Các phương thức kế thừa |
|
|
Từ loại
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Phương thức công khai
getErrorCode
public int getErrorCode ()
Trả về mã lỗi do thao tác. Giá trị là một trong các hằng số trong IntegrityErrorCode
.
getStatusCode
public int getStatusCode ()
Trả về mã lỗi do thao tác. Giá trị là một trong các hằng số trong IntegrityErrorCode
. Hệ thống không hỗ trợ getStatusCode() trong IntegrityServiceExceptions, vui lòng sử dụng etErrorCode() thay thế.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# IntegrityServiceException\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nIntegrityServiceException\n=========================\n\n\n`\npublic\n\n\nclass\nIntegrityServiceException\n`\n\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\nextends `[ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|---|---|------------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||\n| ↳ | [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||\n| | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||\n| | | ↳ | [com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html) ||\n| | | | ↳ | com.google.android.play.core.integrity.IntegrityServiceException |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn exception indicating something went wrong with the Integrity API.\n\nSee [getErrorCode()](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityServiceException.html#getErrorCode()) for the specific problem.\n\nSummary\n-------\n\n| ### Public methods ||\n|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | ` `[getCause](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityServiceException.html#getCause())`() ` |\n| ` int` | ` `[getErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityServiceException.html#getErrorCode())`() ` Returns the error code resulting from the operation. |\n| ` int` | ` `[getStatusCode](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityServiceException.html#getStatusCode())`() ` Returns the error code resulting from the operation. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)` ` |-----------------------------------------------------------------------------------------------------------|------------------------| | ` `[Status](https://developer.google.com/android/reference/com/google/android/gms/common/api/Status.html) | ` getStatus() ` | | ` int` | ` getStatusCode() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` getStatusMessage() ` | ||\n| From class ` `[java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` ` |----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| | ` final void` | ` addSuppressed(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) ` | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | ` fillInStackTrace() ` | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | ` getCause() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` getLocalizedMessage() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` getMessage() ` | | ` `[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html) | ` getStackTrace() ` | | ` final `[Throwable[]](https://developer.android.com/reference/java/lang/Throwable.html) | ` getSuppressed() ` | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | ` initCause(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) ` | | ` void` | ` printStackTrace() ` | | ` void` | ` printStackTrace(`[PrintWriter](https://developer.android.com/reference/java/io/PrintWriter.html)` arg0) ` | | ` void` | ` printStackTrace(`[PrintStream](https://developer.android.com/reference/java/io/PrintStream.html)` arg0) ` | | ` void` | ` setStackTrace(`[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html)` arg0) ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | ||\n| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean` | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic methods\n--------------\n\n### getCause\n\n```\npublic Throwable getCause ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------------|--------|\n| [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | \u003cbr /\u003e |\n\n### getErrorCode\n\n```\npublic int getErrorCode ()\n```\n\nReturns the error code resulting from the operation. The value is one of the constants in\n[IntegrityErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/model/IntegrityErrorCode.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getStatusCode\n\n```\npublic int getStatusCode ()\n```\n\nReturns the error code resulting from the operation. The value is one of the constants in\n[IntegrityErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/model/IntegrityErrorCode.html). getStatusCode() is not supported in IntegrityServiceExceptions,\nplease use getErrorCode() instead.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]