Back to project page Tacere.
The source code is released under:
MIT License
If you think the Android project Tacere listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2014 Jonathan Nelson/*from w ww . j a v a 2 s . c om*/ * Released under the BSD license. For details see the COPYING file. */ package org.ciasaboark.tacere.billing.google; /** * Exception thrown when something went wrong with in-app billing. * An IabException has an associated IabResult (an error). * To get the IAB result that caused this exception to be thrown, * call {@link #getResult()}. */ public class IabException extends Exception { IabResult mResult; public IabException(int response, String message) { this(new IabResult(response, message)); } public IabException(IabResult r) { this(r, null); } public IabException(IabResult r, Exception cause) { super(r.getMessage(), cause); mResult = r; } public IabException(int response, String message, Exception cause) { this(new IabResult(response, message), cause); } /** * Returns the IAB result (error) that this exception signals. */ public IabResult getResult() { return mResult; } }