Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: components/sync/android/java/src/org/chromium/components/sync/signin/AuthException.java

Issue 2351703003: Refactor: move components/sync/../signin to components/signin/../ (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync/android/java/src/org/chromium/components/sync/signin/AuthException.java
diff --git a/components/sync/android/java/src/org/chromium/components/sync/signin/AuthException.java b/components/sync/android/java/src/org/chromium/components/sync/signin/AuthException.java
deleted file mode 100644
index 587527af3964d875a5518ebab3b5f4231ee3e027..0000000000000000000000000000000000000000
--- a/components/sync/android/java/src/org/chromium/components/sync/signin/AuthException.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.components.sync.signin;
-
-/**
- * AuthException abstracts away authenticator specific exceptions behind a single interface.
- * It is used for passing information that is useful for better handling of errors.
- */
-public class AuthException extends Exception {
- private final boolean mIsTransientError;
-
- /**
- * A simple constructor that stores all the error handling information and makes it available to
- * the handler.
- * @param isTransientError Whether the error is transient and we can retry.
- * Thus, a user recoverable error is not transient, since it requires explicit user handling
- * before retry.
- */
- public AuthException(boolean isTransientError, Exception exception) {
- super(exception);
- assert !isTransientError;
- mIsTransientError = isTransientError;
- }
-
- /**
- * @return Whether the error is transient and we can retry.
- */
- public boolean isTransientError() {
- return mIsTransientError;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698