| 
 | WebObjects 5.2.3 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException
Instances of the NSKeyValueCoding.UnknownKeyException class are created and thrown when an unknown key is encountered during key-value coding.
 For example, suppose an Employee object receives a valueForKey
 message with "partNumber" as the key. The Employee class does not
 declare a method or instance variable for "partNumber", so
 valueForKey throws an UnknownKeyException.
 An NSKeyValueCoding.UnknownKeyException
 has a user info dictionary containing entries for the object
 for which key-value coding failed (TargetObjectUserInfoKey)
 and the unknown key (UnknownUserInfoKey). For the Employee/partNumber
 example, the TargetObjectUserInfoKey entry would contain
 the Employee object and the UnknownUserInfoKey
 would contain the string "partNumber".
object(), 
key(), 
NSKeyValueCoding.valueForKey(java.lang.String), 
NSKeyValueCoding, 
NSKeyValueCoding.ErrorHandling, 
Serialized Form| Field Summary | |
| static String | TargetObjectUserInfoKeyDeprecated. this user info dictionary entry should be accessed using the object method. | 
| static String | UnknownUserInfoKeyDeprecated. this user info dictionary entry should be accessed using the key method. | 
| Constructor Summary | |
| NSKeyValueCoding.UnknownKeyException(String message,
                                     NSDictionary userInfo)Deprecated. Use NSKeyValueCoding.UnknownKeyException(java.lang.String, java.lang.Object, java.lang.String)instead. | |
| NSKeyValueCoding.UnknownKeyException(String message,
                                     Object object,
                                     String key)Creates and returns a new UnknownKeyExceptionwithmessageas the message and a user info dictionary specifyingobjectfor the TargetObjectUserInfoKey andkeyfor the
 UnknownUserInfoKey. | |
| Method Summary | |
|  String | key()This method returns the key that NSKeyValueCoding operations were using at the time of the error, or nullif it is unavailable. | 
|  Object | object()This method returns the value that NSKeyValueCoding operations were using at the time of the error, or nullif it is unavailable. | 
|  NSDictionary | userInfo()Deprecated. The objectandkeymethods should be used instead | 
| 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 | 
| Field Detail | 
public static final String TargetObjectUserInfoKey
object()public static final String UnknownUserInfoKey
key()| Constructor Detail | 
public NSKeyValueCoding.UnknownKeyException(String message,
                                            Object object,
                                            String key)
UnknownKeyException with message
 as the message and a user info dictionary specifying object
 for the TargetObjectUserInfoKey and key for the
 UnknownUserInfoKey.
message - the message created and returnobject - object specified for the TargetObjectUserInfoKey.  It may be nullkey - identifies the property of an object.  It may be nullobject(), 
key()
public NSKeyValueCoding.UnknownKeyException(String message,
                                            NSDictionary userInfo)
NSKeyValueCoding.UnknownKeyException(java.lang.String, java.lang.Object, java.lang.String) instead.
message - A message or summary associated with the new exceptionuserInfo - the user info dictionary containing more information about the errorNSKeyValueCoding.UnknownKeyException(String, Object, String), 
TargetObjectUserInfoKey, 
UnknownUserInfoKey| Method Detail | 
public String key()
null if it is unavailable.
 This is equivalent to getting the UnknownUserInfoKey 
 entry from the userInfo dictionary.
UnknownUserInfoKeypublic Object object()
null if it is unavailable.
 This is equivalent to getting the TargetObjectUserInfoKey 
 entry from the userInfo dictionary.
TargetObjectUserInfoKeypublic NSDictionary userInfo()
object and key methods should be used instead
object(), 
key()| 
 | Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||