summaryrefslogtreecommitdiff
path: root/MLKThrowException.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 11:59:47 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 11:59:47 +0200
commit84597fcf74fc74672fe664456e62ec6be5f2b066 (patch)
tree770e3e4dc9a4424a11358f91e6c593babaa890d0 /MLKThrowException.m
parent5117dba9fcf4b23f94fc9b5896ffdb4876c422b3 (diff)
Add classes MLKNoSuchSymbolError, MLKStreamError, and MLKUnboundVariableError.
Diffstat (limited to 'MLKThrowException.m')
-rw-r--r--MLKThrowException.m21
1 files changed, 13 insertions, 8 deletions
diff --git a/MLKThrowException.m b/MLKThrowException.m
index 2c512a7..b306aec 100644
--- a/MLKThrowException.m
+++ b/MLKThrowException.m
@@ -22,12 +22,17 @@
@implementation MLKThrowException
--(MLKThrowException *) initWithCatchTag:(MLKSymbol *)catchTag
- value:(id)value
+-(id) initWithCatchTag:(MLKSymbol *)catchTag
+ values:(NSArray *)values
{
- self = [super init];
+ self = [super initWithName:@"MLKThrowException"
+ reason:[NSString stringWithFormat:
+ @"THROW: tag %@, values %@.",
+ MLKPrintToString(catchTag),
+ MLKPrintToString(values)]
+ userInfo:nil];
LASSIGN (_catchTag, catchTag);
- LASSIGN (_value, value);
+ LASSIGN (_values, values);
return self;
}
@@ -36,15 +41,15 @@
return _catchTag;
}
--(id) value
+-(NSArray *) thrownValues
{
- return _value;
+ return _values;
}
-(void) dealloc
{
- LRELEASE (_catchTag);
- LRELEASE (_value);
+ LDESTROY (_catchTag);
+ LDESTROY (_values);
[super dealloc];
}
@end