View Javadoc
1   /*
2    * Created on 2005-maj-13
3    */
4   package net.sourceforge.jsh3modtool.mod;
5   
6   /***
7    * Exception thrown when a mod package is missing an entry.
8    * @author redsolo
9    */
10  public class MissingEntryException extends Exception
11  {
12      private String entryName;
13      
14      /***
15       * @param entryname the name of the entry that is missing.
16       */
17      public MissingEntryException(String entryname)
18      {
19          super();
20          entryName = entryname;
21      }
22      
23      /***
24       * @return Returns the entry name that is missing.
25       */
26      public String getEntryName()
27      {
28          return entryName;
29      }
30      
31      public String getMessage()
32      {
33          return "The mod package does not contain the '" + entryName + "'";
34      }
35  }