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;
23  
24  /**
25   * The {@link DeploymentPluginException} is thrown by the DeploymentPlugin to indicate an error in the creation of the OSGi Deployment-Package.
26   * 
27   * @author Siamak Haschemi, haschemi@informatik.hu-berlin.de
28   */
29  public class DeploymentPluginException extends RuntimeException {
30    private static final long serialVersionUID = 2032507941652448379L;
31  
32    /**
33     * Constructor which creates an Exception chain with a message and a {@link Throwable} as the cause of this exception.
34     * 
35     * @param p_message
36     *          the message of this exception
37     * @param p_cause
38     *          the cause of this exception
39     */
40    public DeploymentPluginException(final String p_message, final Throwable p_cause) {
41      super(p_message, p_cause);
42    }
43  
44    /**
45     * Constructor which creates an Exception chain with a {@link Throwable} as the cause of this exception. No message is provided.
46     * 
47     * @param p_cause
48     *          p_cause the cause of this exception
49     */
50    public DeploymentPluginException(final Throwable p_cause) {
51      super(p_cause);
52    }
53  
54    /**
55     * Constructor which creates an Exception with no original cause ({@link Throwable}) . Only a message is provided.
56     * 
57     * @param p_message
58     *          the message of this exception
59     */
60    public DeploymentPluginException(final String p_message) {
61      super(p_message);
62    }
63  }