KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > model > converter > PomTranslationException


1 package org.apache.maven.model.converter;/*
2  * Copyright 2001-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 /**
18  * @author jdcasey
19  */

20 public class PomTranslationException
21     extends Exception JavaDoc
22 {
23
24     private final String JavaDoc groupId;
25
26     private final String JavaDoc artifactId;
27
28     private final String JavaDoc version;
29
30     public PomTranslationException( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc message )
31     {
32         this( groupId, artifactId, version, message, null );
33     }
34
35     public PomTranslationException( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, Throwable JavaDoc cause )
36     {
37         this( groupId, artifactId, version, "[No message provided.]", cause );
38     }
39
40     public PomTranslationException( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc message, Throwable JavaDoc cause )
41     {
42         super( "In POM{" + groupId + ":" + artifactId + ":" + version + "}: " + message, cause );
43         this.groupId = groupId;
44         this.artifactId = artifactId;
45         this.version = version;
46     }
47 }
Popular Tags