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

Side by Side Diff: base/android/java/src/org/chromium/content/common/ProcessInitException.java

Issue 141223002: Move the android library loader from content to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 6 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.common; 5 package org.chromium.content.common;
6 6
7 import org.chromium.base.library_loader.LoaderErrors;
8
7 /** 9 /**
8 * The exception that is thrown when the intialization of a process was failed. 10 * The exception that is thrown when the intialization of a process was failed.
11 * TODO(aberent) Remove this once the downstream patch lands, and move this code to base.
12 * In advance of its deletion this has been moved into the base directory struct ure, to
13 * allow org.chromium.base.library_loader.ProcessInitException to derive from it . This
14 * will go away as soon as the downstream patch lands.
9 */ 15 */
10 public class ProcessInitException extends Exception { 16 public class ProcessInitException extends Exception {
11 private int mErrorCode = 0; 17 private int mErrorCode = LoaderErrors.LOADER_ERROR_NORMAL_COMPLETION;
12 18
13 /** 19 /**
14 * @param errorCode The error code could be one from content/public/common/r esult_codes.h 20 * @param errorCode This will be one of the LoaderErrors error codes.
15 * or embedder.
16 */ 21 */
17 public ProcessInitException(int errorCode) { 22 public ProcessInitException(int errorCode) {
18 mErrorCode = errorCode; 23 mErrorCode = errorCode;
19 } 24 }
20 25
21 /** 26 /**
22 * @param errorCode The error code could be one from content/public/common/r esult_codes.h 27 * @param errorCode This will be one of the LoaderErrors error codes.
23 * or embedder.
24 * @param throwable The wrapped throwable obj. 28 * @param throwable The wrapped throwable obj.
25 */ 29 */
26 public ProcessInitException(int errorCode, Throwable throwable) { 30 public ProcessInitException(int errorCode, Throwable throwable) {
27 super(null, throwable); 31 super(null, throwable);
28 mErrorCode = errorCode; 32 mErrorCode = errorCode;
29 } 33 }
30 34
31 /** 35 /**
32 * Return the error code. 36 * Return the error code.
33 */ 37 */
34 public int getErrorCode() { 38 public int getErrorCode() {
35 return mErrorCode; 39 return mErrorCode;
36 } 40 }
37 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698