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

Unified Diff: third_party/jmake/src/org/pantsbuild/jmake/PrivateException.java

Issue 1373723003: Fix javac --incremental by using jmake for dependency analysis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aidl
Patch Set: fix license check Created 5 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: third_party/jmake/src/org/pantsbuild/jmake/PrivateException.java
diff --git a/third_party/jmake/src/org/pantsbuild/jmake/PrivateException.java b/third_party/jmake/src/org/pantsbuild/jmake/PrivateException.java
new file mode 100644
index 0000000000000000000000000000000000000000..b8b0c78984f75a2f01f1a76dee0823ddfd15110b
--- /dev/null
+++ b/third_party/jmake/src/org/pantsbuild/jmake/PrivateException.java
@@ -0,0 +1,28 @@
+/* Copyright (c) 2002-2008 Sun Microsystems, Inc. All rights reserved
+ *
+ * This program is distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+package org.pantsbuild.jmake;
+
+/**
+ * This class is used as a wrapper for a number of exceptions that are thrown by jmake. Its
+ * only purpose is to help avoid using endless "throws" clauses in the code.
+ *
+ * @author Misha Dmitriev
+ * 12 November 2001
+ */
+public class PrivateException extends RuntimeException {
+
+ private static final long serialVersionUID = 1L;
+ private Throwable originalException;
+
+ public PrivateException(Throwable e) {
+ originalException = e;
+ }
+
+ public Throwable getOriginalException() {
+ return originalException;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698