Monotone-Parent: ab33bf455396ef05789524fb34a58f5abdc8ca98

Monotone-Revision: 184ea8d5f44aa0290cfcfc13737469283f4e77ea

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-12-13T19:26:47
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-12-13 19:26:47 +00:00
parent b35367c1c1
commit fa80a22946
3 changed files with 53 additions and 0 deletions

View File

@ -1,5 +1,12 @@
2007-12-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MainUI/SOGoRootPage.m ([SOGoRootPage -crashAction]): new
action methods that generates a segmentation faults.
([SOGoRootPage -exceptionAction]): new method that returns an
exception object.
([SOGoRootPage -raisedExceptionAction]): new method that raises an
exception without returning it.
* UI/SOGoUI/UIxComponent.m ([UIxComponent -responseWithStatus:status])
([UIxComponent -responseWithStatus:statusandString:contentString])
([UIxComponent -responseWithStatus:statusandJSONRepresentation:contentObject])

View File

@ -19,6 +19,8 @@
02111-1307, USA.
*/
#import <Foundation/NSException.h>
#import <NGObjWeb/WOApplication.h>
#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WOCookie.h>
@ -35,6 +37,12 @@
#import "SOGoRootPage.h"
@interface SOGoRootPage (crashAdditions)
- (void) segfault;
@end
@implementation SOGoRootPage
- (void) dealloc
@ -110,4 +118,27 @@
return YES;
}
- (id <WOActionResults>) crashAction
{
[self segfault];
return nil;
}
- (id <WOActionResults>) exceptionAction
{
return (id <WOActionResults>)
[NSException exceptionWithName: @"ExceptionAction"
reason: @"This exception is brought to you by SOGo"
userInfo: nil];
}
- (id <WOActionResults>) raisedExceptionAction
{
[NSException raise: @"ExceptionAction"
format: @"This exception is brought to you by SOGo"];
return nil;
}
@end /* SOGoRootPage */

View File

@ -89,6 +89,21 @@
protectedBy = "<public>";
pageName = "SOGoRootPage";
};
crash = {
protectedBy = "<public>";
pageName = "SOGoRootPage";
actionName = "crash";
};
exception = {
protectedBy = "<public>";
pageName = "SOGoRootPage";
actionName = "exception";
};
raisedException = {
protectedBy = "<public>";
pageName = "SOGoRootPage";
actionName = "raisedException";
};
connect = {
protectedBy = "<public>";
pageName = "SOGoRootPage";