View Javadoc

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   * Author: Siamak Haschemi
20   * Contact: haschemi@informatik.hu-berlin.de
21   */
22  package net.sourceforge.osgi.deployment.maven.manifest;
23  
24  /**
25   * An {@link ManifestException} is thrown if any error occures while processing the input data from the {@link IDeploymentPluginContext} to generate the
26   * manifest file.
27   * 
28   * @author Siamak Haschemi, haschemi@informatik.hu-berlin.de
29   * 
30   */
31  public final class ManifestException extends RuntimeException {
32    private static final long serialVersionUID = -5665247031595519354L;
33  
34    /**
35     * Constructor which creates an Exception chain with a message and a {@link Throwable} as the cause of this exception.
36     * 
37     * @param p_message
38     *          the message of this exception
39     * @param p_cause
40     *          the cause of this exception
41     */
42    public ManifestException(final String p_message, final Throwable p_cause) {
43      super(p_message, p_cause);
44    }
45  
46    /**
47     * Constructor which creates an Exception chain with a {@link Throwable} as the cause of this exception. No message is provided.
48     * 
49     * @param p_cause
50     *          p_cause the cause of this exception
51     */
52    public ManifestException(final Throwable p_cause) {
53      super(p_cause);
54    }
55  
56    /**
57     * Constructor which creates an Exception with no original cause ({@link Throwable}) . Only a message is provided.
58     * 
59     * @param p_message
60     *          the message of this exception
61     */
62    public ManifestException(final String p_message) {
63      super(p_message);
64    }
65  }