diff options
author | Xavier Ducrohet <xav@android.com> | 2012-05-15 11:06:04 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-05-15 11:06:04 -0700 |
commit | 0f189400fd2a36bf11bfb058e7f3917eb7ed163a (patch) | |
tree | 31cfb93323da466e36cd74fb8fd2ece06ecf97d6 /src/org/apache/tools/ant/BuildException.java | |
parent | d1fa5c0d9856fe4e3dc2d30cb96e3cc847ff125f (diff) | |
parent | 5716c15248acdb7dba42d951cf8273ee87cc6846 (diff) | |
download | android_external_ant-glob-cm-12.0.tar.gz android_external_ant-glob-cm-12.0.tar.bz2 android_external_ant-glob-cm-12.0.zip |
Merge "Original upload of the glob library"HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001cm-11.0-XNPH44S-bacon-5fa8c79c0bcm-11.0-XNPH33R-bacon-3628510d76cm-11.0-XNPH30O-bacon-4f280f505acm-11.0-XNPH25R-bacon-d22b777afacm-11.0-XNPH22R-bacon-03d77315eacm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56cm-10.2.1cm-10.2.0cm-10.2-M1cm-10.1.3-RC2cm-10.1.3-RC1cm-10.1.3cm-10.1.2cm-10.1.1cm-10.1.0-RC5cm-10.1.0-RC4cm-10.1.0-RC3cm-10.1.0-RC2cm-10.1.0-RC1cm-10.1.0cm-10.1-M3cm-10.1-M2cm-10.1-M1staging/cm-12.1staging/cm-12.0-cafstable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Estable/cm-12.1-YOG7Dstable/cm-12.1-YOG4Pstable/cm-12.1-YOG3Cstable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Cstable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tstable/cm-12.0-YNG1Istable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Sstable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0stable/cm-10.2shipping/cm-11.0mr1.1-stagingcm-13.0cm-12.1cm-12.0cm-11.0cm-10.2cm-10.1
Diffstat (limited to 'src/org/apache/tools/ant/BuildException.java')
-rw-r--r-- | src/org/apache/tools/ant/BuildException.java | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/org/apache/tools/ant/BuildException.java b/src/org/apache/tools/ant/BuildException.java new file mode 100644 index 0000000..f547cd7 --- /dev/null +++ b/src/org/apache/tools/ant/BuildException.java @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +package org.apache.tools.ant; + +/** + * Signals an error condition during a build + */ +public class BuildException extends RuntimeException { + + private static final long serialVersionUID = 1L; + + /** + * Constructs a build exception with no descriptive information. + */ + public BuildException() { + super(); + } + + /** + * Constructs an exception with the given descriptive message. + * + * @param message A description of or information about the exception. + * Should not be <code>null</code>. + */ + public BuildException(String message) { + super(message); + } + + /** + * Constructs an exception with the given message and exception as + * a root cause. + * + * @param message A description of or information about the exception. + * Should not be <code>null</code> unless a cause is specified. + * @param cause The exception that might have caused this one. + * May be <code>null</code>. + */ + public BuildException(String message, Throwable cause) { + super(message); + initCause(cause); + } + + /** + * Constructs an exception with the given exception as a root cause. + * + * @param cause The exception that might have caused this one. + * Should not be <code>null</code>. + */ + public BuildException(Throwable cause) { + super(cause); + } + + /** + * Returns the nested exception, if any. + * + * @return the nested exception, or <code>null</code> if no + * exception is associated with this one + * @deprecated Use {@link #getCause} instead. + */ + @Deprecated + public Throwable getException() { + return getCause(); + } +} |