Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wyjątek standardowej integralności
public
class
StandardIntegrityException
extends ApiException
Wyjątek wskazujący, że coś poszło nie tak z interfejsem Standard Integrity API.
Aby uzyskać rozwiązanie konkretnego problemu, zapoznaj się z artykułem getErrorCode()
.
Podsumowanie
Metody dziedziczone |
|
|
Z zajęć
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()
|
|
Metody publiczne
getErrorCode
public int getErrorCode ()
Zwraca kod błędu wynikający z operacji. Wartość jest jedną ze stałych w argumentach
StandardIntegrityErrorCode
getStatusCode
public int getStatusCode ()
Zwraca kod błędu wynikający z operacji. Wartość jest jedną ze stałych w argumentach
StandardIntegrityErrorCode
Funkcja getStatusCode() nie jest obsługiwana w StandardIntegrityException
. Zamiast niej użyj metody getErrorCode().
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# StandardIntegrityException\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nStandardIntegrityException\n==========================\n\n\n`\npublic\n\n\nclass\nStandardIntegrityException\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.StandardIntegrityException |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn exception indicating something went wrong with the Standard Integrity API.\n\nSee [getErrorCode()](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityException.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/StandardIntegrityException.html#getCause())`() ` |\n| ` int` | ` `[getErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityException.html#getErrorCode())`() ` Returns the error code resulting from the operation. |\n| ` int` | ` `[getStatusCode](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityException.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[StandardIntegrityErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.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[StandardIntegrityErrorCode](../../../../../../../reference/com/google/android/play/core/integrity/model/StandardIntegrityErrorCode.html). getStatusCode() is not supported in [StandardIntegrityException](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityException.html), please use getErrorCode() instead.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]