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:
mguesdon 2004-03-26 10:28:19 +00:00
parent 414758c592
commit 8b0d7de365

View file

@ -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
{