@@ -27,18 +27,19 @@ OF_ASSUME_NONNULL_BEGIN @class MTXClient; @interface MTXClientException: OFException -@property (readonly, nonatomic) MTXClient *client; @property (readonly, nonatomic) int statusCode; @property (readonly, nonatomic) mtx_response_t response; +@property (readonly, nonatomic) MTXClient *client; -+ (instancetype)exceptionWithClient: (MTXClient *)client - statusCode: (int)statusCode - response: (mtx_response_t)response; -- (instancetype)initWithClient: (OFString *)user - statusCode: (int)statusCode - response: (mtx_response_t)response; ++ (instancetype)exceptionWithStatusCode: (int)statusCode + response: (mtx_response_t)response + client: (MTXClient *)client; +- (instancetype)initWithStatusCode: (int)statusCode + response: (mtx_response_t)respons + client: (MTXClient *)client + OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END