OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2002-2008 Sun Microsystems, Inc. All rights reserved |
| 2 * |
| 3 * This program is distributed under the terms of |
| 4 * the GNU General Public License Version 2. See the LICENSE file |
| 5 * at the top of the source tree. |
| 6 */ |
| 7 package org.pantsbuild.jmake; |
| 8 |
| 9 /** |
| 10 * This class is used as a wrapper for a number of exceptions that are thrown by
jmake. Its |
| 11 * only purpose is to help avoid using endless "throws" clauses in the code. |
| 12 * |
| 13 * @author Misha Dmitriev |
| 14 * 12 November 2001 |
| 15 */ |
| 16 public class PrivateException extends RuntimeException { |
| 17 |
| 18 private static final long serialVersionUID = 1L; |
| 19 private Throwable originalException; |
| 20 |
| 21 public PrivateException(Throwable e) { |
| 22 originalException = e; |
| 23 } |
| 24 |
| 25 public Throwable getOriginalException() { |
| 26 return originalException; |
| 27 } |
| 28 } |
OLD | NEW |