michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.fxa.authenticator; michael@0: michael@0: /** michael@0: * Abstraction around things that might need to be signalled to the user via UI, michael@0: * such as: michael@0: *
michael@0: * Consumers of this code should differentiate error classes based on the types
michael@0: * of the exceptions thrown. Exceptions that do not have special meaning are of
michael@0: * type FxAccountLoginException
with an appropriate
michael@0: * cause
inner exception.
michael@0: */
michael@0: public interface FxAccountLoginDelegate {
michael@0: public void handleError(FxAccountLoginException e);
michael@0: public void handleSuccess(String assertion);
michael@0: }