ObjFW
OFSetItemAttributesFailedException.h
1 /*
2  * Copyright (c) 2008-2021 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 "OFException.h"
17 #import "OFURLHandler.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
21 @class OFURL;
22 
31 {
32  OFURL *_URL;
33  of_file_attributes_t _attributes;
34  of_file_attribute_key_t _failedAttribute;
35  int _errNo;
36 }
37 
41 @property (readonly, nonatomic) OFURL *URL;
42 
46 @property (readonly, nonatomic) int errNo;
47 
51 @property (readonly, nonatomic) of_file_attributes_t attributes;
52 
56 @property (readonly, nonatomic) of_file_attribute_key_t failedAttribute;
57 
58 + (instancetype)exception OF_UNAVAILABLE;
59 
70 + (instancetype)exceptionWithURL: (OFURL *)URL
71  attributes: (of_file_attributes_t)attributes
72  failedAttribute: (of_file_attribute_key_t)failedAttribute
73  errNo: (int)errNo;
74 
75 - (instancetype)init OF_UNAVAILABLE;
76 
87 - (instancetype)initWithURL: (OFURL *)URL
88  attributes: (of_file_attributes_t)attributes
89  failedAttribute: (of_file_attribute_key_t)failedAttribute
90  errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
91 @end
92 
93 OF_ASSUME_NONNULL_END
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:58
The base class for all exceptions in ObjFW.
Definition: OFException.h:147
An exception indicating an item's attributes could not be set.
Definition: OFSetItemAttributesFailedException.h:31
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:34