org.clapper.util.config
Class NoSuchVariableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.clapper.util.misc.NestedException
              extended by org.clapper.util.config.ConfigurationException
                  extended by org.clapper.util.config.NoSuchVariableException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchVariableException
extends ConfigurationException

A NoSuchVariableException is thrown by the Configuration class to signify that a requested configuration variable does not exist.

Version:
$Revision: 6735 $
Author:
Copyright © 2004-2007 Brian M. Clapper
See Also:
ConfigurationException, Serialized Form

Constructor Summary
NoSuchVariableException(java.lang.String sectionName, java.lang.String variableName)
          Constructs an exception.
 
Method Summary
 java.lang.String getSectionName()
          Gets the section name associated with this exception.
 java.lang.String getVariableName()
          Gets the variable name associated with this exception.
 
Methods inherited from class org.clapper.util.misc.NestedException
getMessage, getMessage, getMessages, getMessages, getMessages, getNestedException, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchVariableException

public NoSuchVariableException(java.lang.String sectionName,
                               java.lang.String variableName)
Constructs an exception.

Parameters:
sectionName - the section that doesn't have the variable
variableName - the variable name to which the exception pertains
Method Detail

getSectionName

public java.lang.String getSectionName()
Gets the section name associated with this exception.

Returns:
the section name

getVariableName

public java.lang.String getVariableName()
Gets the variable name associated with this exception.

Returns:
the variable name


Copyright © 2004-2007 Brian M. Clapper. All Rights Reserved.