-
- All Implemented Interfaces:
-
java.io.Serializable
public class OpenIapError extends Exception
OpenIAP specific exceptions
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private final Stringcodeprivate final Stringmessageprivate SubResponseCodeAndroidsubResponseCodeprivate final StringdebugMessageprivate final Throwablecause
-
Method Summary
Modifier and Type Method Description abstract StringgetCode()abstract StringgetMessage()final SubResponseCodeAndroidgetSubResponseCode()final UnitsetSubResponseCode(SubResponseCodeAndroid subResponseCode)StringgetDebugMessage()Optional raw debug message surfaced from the underlying billing layer (e.g. ThrowablegetCause()Map<String, Object>toJSON()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMessage
abstract String getMessage()
-
getSubResponseCode
final SubResponseCodeAndroid getSubResponseCode()
-
setSubResponseCode
final Unit setSubResponseCode(SubResponseCodeAndroid subResponseCode)
-
getDebugMessage
String getDebugMessage()
Optional raw debug message surfaced from the underlying billing layer (e.g. Google Play's
BillingResult.debugMessage). Subclasses that carry per-call diagnostics should override this so callers can see the exact argument the store rejected.
-
-
-
-