KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > plugin > tools > model > PluginMetadataParseException


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