com.programix.value
Class ValueMapRequiredKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.programix.value.ValueMapException
com.programix.value.ValueMapRequiredKeyException
- All Implemented Interfaces:
- Serializable
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).
- Author:
- Paul Hyde
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValueMapRequiredKeyException
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.
getKeyName
public String getKeyName()
Copyright © 2001-2009
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.