}
- (NSException *)isPrivateExceptionForObject:(id)_object {
- return [self makeExceptionForObject:_object
- reason:@"tried to access private object"];
+ NSString *r;
+
+ r = [NSString stringWithFormat:@"tried to access private object "
+ @"(0x%08X, SoClass=%@)",
+ _object, [[_object soClass] className]];
+ return [self makeExceptionForObject:_object reason:r];
}
- (NSException *)missingPermissionException:(NSString *)_perm
forObject:(id)_object
{
- return [self makeExceptionForObject:_object
- reason:@"missing object permission"];
+ NSString *r;
+
+ r = [NSString stringWithFormat:@"missing permission '%@' on object "
+ @"(0x%08X, SoClass=%@)",
+ _perm, _object, [[_object soClass] className]];
+ return [self makeExceptionForObject:_object reason:r];
}
- (NSException *)isPrivateKeyException:(NSString *)_key ofObject:(id)_object {