1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19 package org.apache.maven.doxia.macro.manager;
20
21 /**
22 * Encapsulate an exception that indicates that a Macro
23 * does not exist or could not be found.
24 *
25 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
26 * @since 1.0
27 */
28 public class MacroNotFoundException extends Exception {
29 /** serialVersionUID */
30 static final long serialVersionUID = 295967936746221567L;
31
32 /**
33 * Construct a new MacroNotFoundException with the specified detail message.
34 *
35 * @param message The detailed message.
36 * This can later be retrieved by the Throwable.getMessage() method.
37 */
38 public MacroNotFoundException(String message) {
39 super(message);
40 }
41
42 /**
43 * Constructs a new MacroNotFoundException with the specified cause.
44 * The error message is (cause == null ? null : cause.toString()).
45 *
46 * @param cause the cause. This can be retrieved later by the
47 * Throwable.getCause() method. (A null value is permitted, and indicates
48 * that the cause is nonexistent or unknown.)
49 */
50 public MacroNotFoundException(Throwable cause) {
51 super(cause);
52 }
53
54 /**
55 * Construct a new MacroNotFoundException with the specified
56 * detail message and cause.
57 *
58 * @param message The detailed message.
59 * This can later be retrieved by the Throwable.getMessage() method.
60 * @param cause the cause. This can be retrieved later by the
61 * Throwable.getCause() method. (A null value is permitted, and indicates
62 * that the cause is nonexistent or unknown.)
63 */
64 public MacroNotFoundException(String message, Throwable cause) {
65 super(message, cause);
66 }
67 }