15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|
* file.
*/
#import "OFException.h"
OF_ASSUME_NONNULL_BEGIN
/*!
* @class OFLoadPluginFailedException \
* OFLoadPluginFailedException.h ObjFW/OFLoadPluginFailedException.h
*
* @brief An exception indicating a plugin could not be loaded.
*/
@interface OFLoadPluginFailedException: OFException
{
OFString *_path, *_Nullable _error;
}
/*!
* @brief The path of the plugin which could not be loaded
*/
@property (readonly, nonatomic) OFString *path;
/*!
* @brief The error why the plugin could not be loaded, as a string
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *error;
+ (instancetype)exception OF_UNAVAILABLE;
/*!
* @brief Creates a new, autoreleased load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return A new, autoreleased load plugin failed exception
*/
+ (instancetype)exceptionWithPath: (OFString *)path
error: (nullable OFString *)error;
- (instancetype)init OF_UNAVAILABLE;
/*!
* @brief Initializes an already allocated load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return An initialized load plugin failed exception
*/
- (instancetype)initWithPath: (OFString *)path
|
|
|
|
|
|
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|
* file.
*/
#import "OFException.h"
OF_ASSUME_NONNULL_BEGIN
/**
* @class OFLoadPluginFailedException \
* OFLoadPluginFailedException.h ObjFW/OFLoadPluginFailedException.h
*
* @brief An exception indicating a plugin could not be loaded.
*/
@interface OFLoadPluginFailedException: OFException
{
OFString *_path, *_Nullable _error;
}
/**
* @brief The path of the plugin which could not be loaded
*/
@property (readonly, nonatomic) OFString *path;
/**
* @brief The error why the plugin could not be loaded, as a string
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *error;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return A new, autoreleased load plugin failed exception
*/
+ (instancetype)exceptionWithPath: (OFString *)path
error: (nullable OFString *)error;
- (instancetype)init OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return An initialized load plugin failed exception
*/
- (instancetype)initWithPath: (OFString *)path
|