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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcessInitException.java

Issue 11567061: Throw exception when initialization failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcessInitException.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcessInitException.java b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcessInitException.java
new file mode 100644
index 0000000000000000000000000000000000000000..ea40009b42bad8b7fdc26bd511eca5880a613a90
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcessInitException.java
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 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.content.browser;
+
+public class AndroidBrowserProcessInitException extends Exception {
joth 2012/12/21 21:53:13 consider having this extend Error, like Unsatisfie
+ private int mErrorCode = 0;
+
+ public AndroidBrowserProcessInitException(int errorCode) {
+ super();
+ mErrorCode = errorCode;
+ }
+
+ public AndroidBrowserProcessInitException(int errorCode, Throwable throwable) {
+ super(null, throwable);
+ mErrorCode = errorCode;
+ }
+
+ public int getErrorCode() {
+ return mErrorCode;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698