ObjFW
Loading...
Searching...
No Matches
OFWriteFailedException.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This file is part of ObjFW. It may be distributed under the terms of the
7 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8 * the packaging of this file.
9 *
10 * Alternatively, it may be distributed under the terms of the GNU General
11 * Public License, either version 2 or 3, which can be found in the file
12 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13 * file.
14 */
15
16#import "OFReadOrWriteFailedException.h"
17
18OF_ASSUME_NONNULL_BEGIN
19
27{
28 size_t _bytesWritten;
29 OF_RESERVE_IVARS(OFWriteFailedException, 4)
30}
31
38@property (readonly, nonatomic) size_t bytesWritten;
39
51+ (instancetype)exceptionWithObject: (id)object
52 requestedLength: (size_t)requestedLength
53 bytesWritten: (size_t)bytesWritten
54 errNo: (int)errNo;
55
56+ (instancetype)exceptionWithObject: (id)object
57 requestedLength: (size_t)requestedLength
58 errNo: (int)errNo OF_UNAVAILABLE;
59
71- (instancetype)initWithObject: (id)object
72 requestedLength: (size_t)requestedLength
73 bytesWritten: (size_t)bytesWritten
74 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
75
76- (instancetype)initWithObject: (id)object
77 requestedLength: (size_t)requestedLength
78 errNo: (int)errNo OF_UNAVAILABLE;
79@end
80
81OF_ASSUME_NONNULL_END
An exception indicating that reading from or writing to an object failed.
Definition OFReadOrWriteFailedException.h:28
An exception indicating that writing to an object failed.
Definition OFWriteFailedException.h:27