ProgramixGenericLib v5.0.1

Class ValueMapRequiredKeyException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.programix.value.ValueMapException
                  extended by com.programix.value.ValueMapRequiredKeyException
All Implemented Interfaces:

public class ValueMapRequiredKeyException
extends ValueMapException

A special kind of ValueMapException used to indicate that a required key was not found in a ValueMap. This is a RuntimeException, so it can be generally ignored when it is unexpected (use of try/catch is not required).

Paul Hyde
See Also:
Serialized Form

Constructor Summary
ValueMapRequiredKeyException(String keyName)
          Pass in the name of the expected key.
Method Summary
 String getKeyName()
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ValueMapRequiredKeyException(String keyName)
Pass in the name of the expected key. The resulting message is generated from this:
     "Required key '" + keyName + "' not found."
The getKeyName() method can be used to retrieve the exact key name if desired.

Method Detail


public String getKeyName()

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.