Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/ThreemaFramework/Core/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 655 B image not shown  

Quelle  ThreemaError.m  Sprache: unbekannt

 
Spracherkennung für: .m vermutete Sprache: Masm {Masm[52] ABAP[42] Lisp[26]} [Methode: maximale Elemente, drei Dimensionen]

#import "ThreemaError.h"
#import "ThreemaFramework/ThreemaFramework-Swift.h"

@implementation ThreemaError

+ (nonnull NSError*)threemaError:(nullable NSString*)message {
    return [self threemaError:message withCode:ThreemaProtocolErrorGeneralError];
}

+ (nonnull NSError*)threemaError:(nullable NSString*)message withCode:(NSInteger)code {
    NSString *errorMessage = message;
    if (errorMessage == nil) {
        errorMessage = @"";
    }
    NSDictionary *userDict = [NSDictionary dictionaryWithObject:errorMessage forKey:NSLocalizedDescriptionKey];
    return [NSError errorWithDomain:@"ThreemaErrorDomain" code:code userInfo:userDict];
}

@end

[Dauer der Verarbeitung: 0.13 Sekunden]