ObjFW  Diff

Differences From Artifact [1070cfb5a4]:

To Artifact [3da93c69a8]:


31
32
33
34
35
36
37
38

39
40
41

42
43
44
45
46

47
48
49
50
51
52
53


54
55
56
57
58


59
60
61
62
31
32
33
34
35
36
37

38
39
40

41
42
43
44
45

46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66







-
+


-
+




-
+







+
+





+
+




}

#ifdef OF_HAVE_PROPERTIES
@property (readonly) Class inClass;
#endif

/**
 * Creates a new exception.
 * \brief Creates a new, autoreleased exception.
 *
 * \param class_ The class of the object which caused the exception
 * \return A new exception
 * \return A new, autoreleased exception
 */
+ (instancetype)exceptionWithClass: (Class)class_;

/**
 * Initializes an already allocated OFException.
 * \brief Initializes an already allocated OFException.
 *
 * \param class_ The class of the object which caused the exception
 * \return An initialized OFException
 */
- initWithClass: (Class)class_;

/**
 * \brief Returns the class of the object in which the exception happened.
 *
 * \return The class of the object in which the exception happened
 */
- (Class)inClass;

/**
 * \brief Returns a description of the exception.
 *
 * \return A description of the exception
 */
- (OFString*)description;
@end