com.webobjects.foundation
Interface NSKeyValueCoding.ErrorHandling
- All Known Subinterfaces:
- EOEnterpriseObject, EOKeyValueCoding, EOKeyValueCodingAdditions
- All Known Implementing Classes:
- BASConfirmPage, BASDefaultHeader, BASEditRelationshipPage, BASErrorPage, BASHead, BASInspectPage, BASListPage, BASMasterDetailPage, BASPlainListPage, BASQueryAllEntitiesPage, BASQueryPage, BASSideHeader, BASSidePageWrapper, D2WActions, D2WCollapsibleComponentContent, D2WCompactInspectComponent, D2WComponent, D2WConfirmPage, D2WContext, D2WCustomComponent, D2WCustomQueryComponent, D2WDefaultCustomComponent, D2WDisplayBoolean, D2WDisplayDate, D2WDisplayHyperlink, D2WDisplayImage, D2WDisplayImageFromPath, D2WDisplayLargeString, D2WDisplayMailTo, D2WDisplayNumber, D2WDisplayString, D2WDisplayStyledDate, D2WDisplayStyledNumber, D2WDisplayStyledString, D2WDisplayThresholdColoredNumber, D2WDisplayToMany, D2WDisplayToMany2, D2WDisplayToManyBrowser, D2WDisplayToManyFault, D2WDisplayToManyTable, D2WDisplayToOne, D2WDisplayToOneFault, D2WEdit, D2WEditBoolean, D2WEditDate, D2WEditLargeString, D2WEditNumber, D2WEditRelationshipPage, D2WEditString, D2WEditToManyFault, D2WEditToManyRelationship, D2WEditToOneFault, D2WEditToOneRelationship, D2WEditUneditable, D2WEmbeddedComponent, D2WEmptyWrapper, D2WErrorPage, D2WGenerationWrapper, D2WHead, D2WInspect, D2WInspectPage, D2WKeyPathContainer, D2WList, D2WListPage, D2WMasterDetailPage, D2WPage, D2WPlainListPage, D2WQuery, D2WQueryAllEntitiesPage, D2WQueryAnyField, D2WQueryBoolean, D2WQueryDateOperator, D2WQueryDateRange, D2WQueryNumberOperator, D2WQueryNumberRange, D2WQueryPage, D2WQueryRangeComponent, D2WQueryRelationship, D2WQueryStringComponent, D2WQueryStringOperator, D2WQueryToManyField, D2WQueryToManyRelationship, D2WQueryToOneField, D2WQueryToOneRelationship, D2WQueryUnavailable, D2WRemoteControl, D2WSelect, D2WStandAloneWebAssistantFrame, D2WStatelessComponent, D2WSwitchComponent, D2WTabInspectPage, D2WWebAssistantFrame, D2WWebAssistantPage, DarwinShadow, DefaultHeader, EditComponent, EditRelationship, EOActionButtonsController, EOActionController, EOActionMenuController, EOActionTrigger, EOActionWidgetController, EOAppletController, EOApplication, EOArchiveController, EOAssociationController, EOBoxController, EOCheckBoxController, EOComboBoxController, EOComponentController, EOController, EOCustomObject, EODefaultActionTrigger, EODetailSelectionController, EODialogController, EODisplayStatisticsController, EODocumentController, EODynamicApplication, EOEditingController, EOEntityController, EOEnumerationController, EOFormatValueController, EOFormController, EOFrameController, EOGenericRecord, EOImageViewController, EOInspectorController, EOInterfaceController, EOListController, EOMenuSwitchController, EOModalDialogController, EOMultipleValuesEnumerationController, EOOneValueEnumerationController, EOProgrammaticSwitchController, EOQueryController, EOQuickTimeViewController, EORangeTextFieldController, EORangeValueController, EORangeWidgetController, EOSimpleWindowController, EOSplitController, EOStaticIconController, EOStaticLabelController, EOStaticTextFieldController, EOSwitchController, EOTableColumnController, EOTableController, EOTabSwitchController, EOTextAreaController, EOTextFieldController, EOTitlesController, EOTreeController, EOValueAndURLController, EOValueController, EOWidgetController, EOWindowController, JSAlertPanel, JSComponent, JSConfirmPanel, JSImageFlyover, JSModalWindow, JSTextFlyover, JSValidatedField, NEUCompactInspectComponent, NEUConfirmPage, NEUEditRelationshipPage, NEUErrorPage, NEUHeader, NEUInspectPage, NEUListPage, NEUMasterDetailPage, NEUPlainListPage, NEUQueryAllPage, NEUQueryPage, NEUTabInspectPage, QueryComponent, QueryOperatorComponent, WOAdminAction, WOAggregateEventRow, WOAnyField, WOApplication, WOAssociationEventRow, WOBatchNavigationBar, WOBeginTransactionOperation, WOCheckboxMatrix, WOCollapsibleComponentContent, WOCommitTransactionOperation, WOCompletionBar, WOComponent, WOContext, WOCookie, WODeleteOperation, WODictionaryRepetition, WODirectAction, WODisplayGroup, WOEventDisplay, WOEventDisplayPage, WOEventPage, WOEventRow, WOEventSetup, WOEventSetupPage, WOExceptionPage, WOFetchSpecSearchOperation, WOHTTPConnection, WOIFrame, WOInsertOperation, WOJavaClientApplet, WOJavaClientComponent, WOJavaClientJNLP, WOKeyValueConditional, WOLCompactInspectComponent, WOLConfirmPage, WOLEditRelationshipPage, WOLErrorPage, WOLHeader, WOLInspectPage, WOLListPage, WOLMasterDetailPage, WOLongResponsePage, WOLPlainListPage, WOLQueryAllPage, WOLQueryPage, WOLTabInspectPage, WOMessage, WOMetaRefresh, WOOperation, WOOperationWSDLTemplate, WOPageRestorationError, WOProjectBuilderAction, WORadioButtonMatrix, WORedirect, WORequest, WOResponse, WORollbackTransactionOperation, WOSearchOperation, WOServletContext, WOSession, WOSessionCreationError, WOSessionRestorationError, WOSimpleArrayDisplay, WOSimpleArrayDisplay2, WOSortOrder, WOSortOrderManyKey, WOStatisticsStore, WOStats, WOStatsPage, WOTable, WOTableString, WOTabPanel, WOThresholdColoredNumber, WOToManyRelationship, WOToOneRelationship, WOUpdateOperation, WOWSDLGeneration, WXAccessControl, WXBar, WXOutlineControl, WXOutlineEntry, WXOutlineRepetition, WXSortOrder
- Enclosing interface:
- NSKeyValueCoding
public static interface NSKeyValueCoding.ErrorHandling
The NSKeyValueCoding.ErrorHandling interface declares an API for handling errors that occur during key-value coding. If implemented, these methods allow customized handling error in the default implementation of key value coding.
- See Also:
NSKeyValueCoding
handleQueryWithUnboundKey
Object handleQueryWithUnboundKey(String key)
- Invoked from
valueForKey
when it finds no property binding for key
. The default implementation throws an NSKeyValueCoding.UnknownKeyException, with the target object(TargetObjectUserInfoKey)
and key(UnknownUserInfokey)
in the
user info. An NSKeyValueCoding.ErrorHandling class can override this method to handle the query in some other way. The method can return a value, in which case that value is returned by the corresponding valueForKey
invocation.
- Parameters:
key
- the property name which generated this error
- Returns:
- any Object or
null
that the custom implementation desires. The default implementation throws an exception instead.
- Throws:
NSKeyValueCoding.UnknownKeyException
- when it finds no property binding for key- See Also:
NSKeyValueCoding.valueForKey
,
NSKeyValueCoding.UnknownKeyException
,
NSKeyValueCoding.DefaultImplementation
handleTakeValueForUnboundKey
void handleTakeValueForUnboundKey(Object value,
String key)
- Invoked from
takeValueForKey
when it finds no property binding for key
. The default implementation throws an NSKeyValueCoding.UnknownKeyException, with the target object(TargetObjectUserInfoKey)
and key(UnknownUserInfoKey)
in
the user info dictionary of the exception. An NSKeyValueCoding.ErrorHandling class can override this method to handle the error in some other way.
- Parameters:
value
- the new value which could not be setkey
- the name of the property which generated this error
- Throws:
NSKeyValueCoding.UnknownKeyException
- when it finds no property binding for key- See Also:
NSKeyValueCoding.takeValueForKey
,
NSKeyValueCoding.UnknownKeyException
,
NSKeyValueCoding.DefaultImplementation
unableToSetNullForKey
void unableToSetNullForKey(String key)
- Invoked from
takeValueForKey
when it is given a null
value for a scalar property (such as an int
or a float
). The default implementation throws an IllegalArgumentException
. You might want to implement the method
(or override the inherited implementation) to handle the request in some other way, such as by substituting new Integer(0)
or a sentinel value and invoking takeValueForKey
again.
- Parameters:
key
- the name of the property which generated this error
- Throws:
IllegalArgumentException
- when it is given a null value for a scalar property- See Also:
NSKeyValueCoding.takeValueForKey
,
NSKeyValueCoding.DefaultImplementation
Copyright © 2000-2008 Apple Inc.