View Javadoc
1   package org.apache.maven.plugin.changes;
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   * This is a runtime exception class that is thrown by the
24   * {@link ChangesXML#ChangesXML(java.io.File, org.apache.maven.plugin.logging.Log)} constructor if the given changes.xml
25   * file cannot be parsed, for example it is not well-formed or valid.
26   *
27   * @author <a href="mailto:szgabsz91@gmail.com">Gabor Szabo</a>
28   */
29  public class ChangesXMLRuntimeException
30      extends RuntimeException
31  {
32      /** The serialVersionUID **/
33      private static final long serialVersionUID = -8059557047280992301L;
34  
35      /**
36       * Default constructor that sets the message.
37       *
38       * @param msg the exception message.
39       */
40      public ChangesXMLRuntimeException( String msg )
41      {
42          super( msg );
43      }
44  
45      /**
46       * Constructor that sets the message and the cause of the exception.
47       *
48       * @param msg the exception message.
49       * @param cause the cause.
50       */
51      public ChangesXMLRuntimeException( String msg, Throwable cause )
52      {
53          super( msg, cause );
54      }
55  }