Chromium Code Reviews| 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; |
| + } |
| +} |