Line 0
Link Here
|
|
|
1 |
/* |
2 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
3 |
* contributor license agreements. See the NOTICE file distributed with |
4 |
* this work for additional information regarding copyright ownership. |
5 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
6 |
* (the "License"); you may not use this file except in compliance with |
7 |
* the License. You may obtain a copy of the License at |
8 |
* |
9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
10 |
* |
11 |
* Unless required by applicable law or agreed to in writing, software |
12 |
* distributed under the License is distributed on an "AS IS" BASIS, |
13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
* See the License for the specific language governing permissions and |
15 |
* limitations under the License. |
16 |
* |
17 |
*/ |
18 |
|
19 |
package org.apache.tools.ant; |
20 |
|
21 |
/** |
22 |
* |
23 |
* This exception is used to indicate timeouts. |
24 |
* @since Ant1.8.2 |
25 |
* |
26 |
*/ |
27 |
|
28 |
public class TimeoutException extends BuildException { |
29 |
|
30 |
private static final long serialVersionUID = 6640770770240792003L; |
31 |
|
32 |
/** |
33 |
* Constructs a build exception with no descriptive information. |
34 |
*/ |
35 |
public TimeoutException() { |
36 |
} |
37 |
|
38 |
/** |
39 |
* Constructs an exception with the given descriptive message. |
40 |
* |
41 |
* @param message A description of or information about the exception. |
42 |
* Should not be <code>null</code>. |
43 |
*/ |
44 |
public TimeoutException(String message) { |
45 |
super(message); |
46 |
} |
47 |
|
48 |
/** |
49 |
* Constructs an exception with the given message and exception as |
50 |
* a root cause. |
51 |
* |
52 |
* @param message A description of or information about the exception. |
53 |
* Should not be <code>null</code> unless a cause is specified. |
54 |
* @param cause The exception that might have caused this one. |
55 |
* May be <code>null</code>. |
56 |
*/ |
57 |
public TimeoutException(String message, Throwable cause) { |
58 |
super(message, cause); |
59 |
} |
60 |
|
61 |
/** |
62 |
* Constructs an exception with the given message and exception as |
63 |
* a root cause and a location in a file. |
64 |
* |
65 |
* @param msg A description of or information about the exception. |
66 |
* Should not be <code>null</code> unless a cause is specified. |
67 |
* @param cause The exception that might have caused this one. |
68 |
* May be <code>null</code>. |
69 |
* @param location The location in the project file where the error |
70 |
* occurred. Must not be <code>null</code>. |
71 |
*/ |
72 |
public TimeoutException(String msg, Throwable cause, Location location) { |
73 |
super(msg, cause, location); |
74 |
} |
75 |
|
76 |
/** |
77 |
* Constructs an exception with the given exception as a root cause. |
78 |
* |
79 |
* @param cause The exception that might have caused this one. |
80 |
* Should not be <code>null</code>. |
81 |
*/ |
82 |
public TimeoutException(Throwable cause) { |
83 |
super(cause); |
84 |
} |
85 |
|
86 |
/** |
87 |
* Constructs an exception with the given descriptive message and a |
88 |
* location in a file. |
89 |
* |
90 |
* @param message A description of or information about the exception. |
91 |
* Should not be <code>null</code>. |
92 |
* @param location The location in the project file where the error |
93 |
* occurred. Must not be <code>null</code>. |
94 |
*/ |
95 |
public TimeoutException(String message, Location location) { |
96 |
super(message, location); |
97 |
} |
98 |
|
99 |
/** |
100 |
* Constructs an exception with the given exception as |
101 |
* a root cause and a location in a file. |
102 |
* |
103 |
* @param cause The exception that might have caused this one. |
104 |
* Should not be <code>null</code>. |
105 |
* @param location The location in the project file where the error |
106 |
* occurred. Must not be <code>null</code>. |
107 |
*/ |
108 |
public TimeoutException(Throwable cause, Location location) { |
109 |
super(cause, location); |
110 |
} |
111 |
} |