@@ -25,12 +25,11 @@ + (instancetype)exception { OF_UNRECOGNIZED_SELECTOR } -+ (instancetype)exceptionWithSandbox: (OFSandbox *)sandbox - errNo: (int)errNo ++ (instancetype)exceptionWithSandbox: (OFSandbox *)sandbox errNo: (int)errNo { return [[[self alloc] initWithSandbox: sandbox errNo: errNo] autorelease]; } @@ -37,12 +36,11 @@ - (instancetype)init { OF_INVALID_INIT_METHOD } -- (instancetype)initWithSandbox: (OFSandbox *)sandbox - errNo: (int)errNo +- (instancetype)initWithSandbox: (OFSandbox *)sandbox errNo: (int)errNo { self = [super init]; _sandbox = [sandbox retain]; _errNo = errNo; @@ -58,8 +56,8 @@ } - (OFString *)description { return [OFString stringWithFormat: - @"The sandbox could not be applied: %@", of_strerror(_errNo)]; + @"The sandbox could not be applied: %@", OFStrError(_errNo)]; } @end