1 package org.apache.maven.plugin.tools.model; 2 3 import java.io.File ; 4 5 public class PluginMetadataParseException 6 extends Exception 7 { 8 9 static final long serialVersionUID = 1; 10 11 private final File metadataFile; 12 private final String originalMessage; 13 14 public PluginMetadataParseException( File metadataFile, String message, Throwable cause ) 15 { 16 super( "Error parsing file: " + metadataFile + ". Reason: " + message, cause ); 17 18 this.metadataFile = metadataFile; 19 this.originalMessage = message; 20 } 21 22 public PluginMetadataParseException( File metadataFile, String message ) 23 { 24 super( "Error parsing file: " + metadataFile + ". Reason: " + message ); 25 26 this.metadataFile = metadataFile; 27 this.originalMessage = message; 28 } 29 30 public File getMetadataFile() 31 { 32 return metadataFile; 33 } 34 35 public String getOriginalMessage() 36 { 37 return originalMessage; 38 } 39 40 } 41 | Popular Tags |