1 package org.apache.maven.model.converter; 16 17 20 public class PomTranslationException 21 extends Exception 22 { 23 24 private final String groupId; 25 26 private final String artifactId; 27 28 private final String version; 29 30 public PomTranslationException( String groupId, String artifactId, String version, String message ) 31 { 32 this( groupId, artifactId, version, message, null ); 33 } 34 35 public PomTranslationException( String groupId, String artifactId, String version, Throwable cause ) 36 { 37 this( groupId, artifactId, version, "[No message provided.]", cause ); 38 } 39 40 public PomTranslationException( String groupId, String artifactId, String version, String message, Throwable 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 |