510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
}
- (int)errNo
{
return err;
}
@end
@implementation OFChangeFileModeFailedException
+ newWithClass: (Class)class__
path: (OFString*)path_
mode: (mode_t)mode_
{
return [(OFChangeFileModeFailedException*)[self alloc]
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
|
}
- (int)errNo
{
return err;
}
@end
@implementation OFCreateDirectoryFailedException
+ newWithClass: (Class)class__
path: (OFString*)path_
{
return [[self alloc] initWithClass: class__
path: path_];
}
- initWithClass: (Class)class__
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
}
- initWithClass: (Class)class__
path: (OFString*)path_
{
self = [super initWithClass: class__];
path = [path_ copy];
err = GET_ERR;
return self;
}
- (void)dealloc
{
[path release];
[super dealloc];
}
- (OFString*)string
{
if (string != nil)
return string;
string = [[OFString alloc] initWithFormat:
@"Failed to create directory %s in class %s! " ERRFMT,
[path cString], [class_ className], ERRPARAM];
return string;
}
- (int)errNo
{
return err;
}
- (OFString*)path
{
return path;
}
@end
@implementation OFChangeFileModeFailedException
+ newWithClass: (Class)class__
path: (OFString*)path_
mode: (mode_t)mode_
{
return [(OFChangeFileModeFailedException*)[self alloc]
|