KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > build > BuildException


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.build;
8
9
10 import com.inversoft.error.ErrorList;
11 import com.inversoft.util.BaseException;
12
13
14 /**
15  * This is the <code>BuildException</code> that is thrown
16  * from any build operations that fail. It is important to
17  * remember that this extends BaseException which contains
18  * an ErrorList that may be used to store errors
19  *
20  * @author Brian Pontarelli
21  * @since 2.0
22  * @version 2.0
23  */

24 public class BuildException extends BaseException {
25
26     /**
27      * Constructs a new empty <code>BuildException</code>
28      */

29     public BuildException() {
30         super();
31     }
32
33     /**
34      * Constructs a new <code>BuildException</code> with the given error
35      * message. This error message is added to the ErrorList for this Exception
36      * as well as being set as the message retrieved from the getMessage()
37      * method.
38      *
39      * @param message The error message for the exception
40      */

41     public BuildException(String JavaDoc message) {
42         super(message);
43     }
44
45     /**
46      * Constructs a new <code>BuildException</code> with the given error
47      * message and root cause. This error message is added to the ErrorList
48      * for this Exception as well as being set as the message retrieved from
49      * the getMessage() method.
50      *
51      * @param message The error message for the exception
52      * @param cause The root cause throwable
53      */

54     public BuildException(String JavaDoc message, Throwable JavaDoc cause) {
55         super(message, cause);
56     }
57
58     /**
59      * Constructs a new <code>BuildException</code> with the given error
60      * root cause
61      *
62      * @param cause The root cause throwable
63      */

64     public BuildException(Throwable JavaDoc cause) {
65         super(cause);
66     }
67
68     /**
69      * Constructs a new <code>BuildException</code> with the given ErrorList and
70      * message
71      *
72      * @param message The error message
73      * @param errors The ErrorList
74      */

75     public BuildException(String JavaDoc message, ErrorList errors) {
76         super(message, errors);
77     }
78
79     /**
80      * Constructs a new <code>BuildException</code> with the given ErrorList
81      *
82      * @param errors The ErrorList
83      */

84     public BuildException(ErrorList errors) {
85         super(errors);
86     }
87 }
88
Popular Tags