Lines Matching refs:error

58 - (BOOL)insertIdentity:(FRAIdentity *)identity error:(NSError *__autoreleasing *)error {
60 if (![self doInsertIdentity:identity andCollectStateChanges:stateChanges withError:error]) {
67 - (BOOL)doInsertIdentity:(FRAIdentity *)identity andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
69 if (error) {
71 *error = [FRAError createError:reason];
76 if (![self doInsertMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) {
80 if (![self.sqlOperations insertIdentity:identity error:error]) {
88 - (BOOL)deleteIdentity:(FRAIdentity *)identity error:(NSError *__autoreleasing *)error {
90 if (![self doDeleteIdentity:identity andCollectStateChanges:stateChanges withError:error]) {
97 - (BOOL)doDeleteIdentity:(FRAIdentity *)identity andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
99 if (error) {
101 *error = [FRAError createError:reason];
106 if (![self doDeleteMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) {
110 if (![self.sqlOperations deleteIdentity:identity error:error]) {
121 - (BOOL)insertMechanism:(FRAMechanism *)mechanism error:(NSError *__autoreleasing *)error {
123 if (![self doInsertMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) {
130 - (BOOL)doInsertMechanism:(FRAMechanism *)mechanism andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
132 if (error) {
133 *error = [FRAError createError:@"Mechanism was already persisted"];
138 if (![self doInsertNotification:notification andCollectStateChanges:stateChanges withError:error]) {
142 if (![self.sqlOperations insertMechanism:mechanism error:error]) {
150 - (BOOL)deleteMechanism:(FRAMechanism *)mechanism error:(NSError *__autoreleasing *)error {
152 if (![self doDeleteMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) {
159 - (BOOL)doDeleteMechanism:(FRAMechanism *)mechanism andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
161 if (error) {
162 *error = [FRAError createError:@"Mechanism was not already persisted"];
167 if (![self doDeleteNotification:notification andCollectStateChanges:stateChanges withError:error]) {
171 if (![self.sqlOperations deleteMechanism:mechanism error:error]) {
179 - (BOOL)updateMechanism:(FRAMechanism *)mechanism error:(NSError *__autoreleasing *)error {
181 if (![self doUpdateMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) {
188 - (BOOL)doUpdateMechanism:(FRAMechanism *)mechanism andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
190 if (error) {
191 *error = [FRAError createError:@"Mechanism was not already persisted"];
195 if (![self.sqlOperations updateMechanism:mechanism error:error]) {
205 - (BOOL)insertNotification:(FRANotification *)notification error:(NSError *__autoreleasing *)error {
207 if (![self doInsertNotification:notification andCollectStateChanges:stateChanges withError:error]) {
214 - (BOOL)doInsertNotification:(FRANotification *)notification andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
216 if (error) {
218 *error = [FRAError createError:reason];
222 if (![self.sqlOperations insertNotification:notification error:error]) {
230 - (BOOL)deleteNotification:(FRANotification *)notification error:(NSError *__autoreleasing *)error {
232 if (![self doDeleteNotification:notification andCollectStateChanges:stateChanges withError:error]) {
239 - (BOOL)doDeleteNotification:(FRANotification *)notification andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
241 if (error) {
243 *error = [FRAError createError:reason];
247 if (![self.sqlOperations deleteNotification:notification error:error]) {
255 - (BOOL)updateNotification:(FRANotification *)notification error:(NSError *__autoreleasing *)error {
257 if (![self doUpdateNotification:notification andCollectStateChanges:stateChanges withError:error]) {
264 - (BOOL)doUpdateNotification:(FRANotification *)notification andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error {
266 if (error) {
268 *error = [FRAError createError:reason];
272 if (![self.sqlOperations updateNotification:notification error:error]) {