View Javadoc

1   package net.trajano.twiff;
2   
3   /***
4    * Subclass of {@link net.trajano.twiff.TwiffException} when there are initial
5    * parameters that are not set in the <i>web.xml</i> file.
6    * 
7    * @author Archimedes Trajano
8    */
9   public class MissingInitialParameterException extends TwiffException {
10      /***
11       * Construct a new exception with no cause and the specified detail message.
12       * 
13       * @param parameterName
14       *                   initial parameter name that is missing
15       */
16      public MissingInitialParameterException(final String parameterName) {
17          super(parameterName);
18          this.parameterName = parameterName;
19      }
20  
21      /***
22       * The parameter name that was not found.
23       */
24      private final String parameterName;
25  
26      /***
27       * Returns the intialization parameter name that was not found.
28       * 
29       * @return the parameter name.
30       */
31      public final String getParameterName() {
32          return parameterName;
33      }
34  }