mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-23 11:41:20 +00:00
o in -performActionNamed:, raise exception if method is not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18919 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
414758c592
commit
8b0d7de365
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
/** GSWDirectAction.m - <title>GSWeb: Class GSWDirectAction</title>
|
||||
|
||||
Copyright (C) 1999-2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2004 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
Date: Feb 1999
|
||||
|
@ -57,7 +57,6 @@ RCS_ID("$Id$")
|
|||
//--------------------------------------------------------------------
|
||||
-(id <GSWActionResults>)performActionNamed:(NSString*)actionName
|
||||
{
|
||||
//OK
|
||||
id<GSWActionResults> actionResult=nil;
|
||||
SEL actionSel=NULL;
|
||||
LOGObjectFnStart();
|
||||
|
@ -65,9 +64,9 @@ RCS_ID("$Id$")
|
|||
NSDebugMLLog(@"requests",@"actionSel=%p",(void*)actionSel);
|
||||
if (!actionSel)
|
||||
{
|
||||
//TODO exception
|
||||
LOGError(@"No selector for action: %@ (%@Action)",actionName,actionName);//TODO
|
||||
actionResult=[self defaultAction];//No ??
|
||||
[NSException raise:NSInvalidArgumentException
|
||||
format:@"No such method: %@ in class named %@.",
|
||||
actionName,[self className]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -119,6 +118,7 @@ RCS_ID("$Id$")
|
|||
//====================================================================
|
||||
@implementation GSWDirectAction (GSWTakeValuesConvenience)
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
//NDFN: return additional path elements
|
||||
-(NSArray*)additionalRequestPathArray
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue