View Javadoc

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