mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
26 lines
690 B
Objective-C
26 lines
690 B
Objective-C
//
|
|
// ALTWrappedError.h
|
|
// AltStoreCore
|
|
//
|
|
// Created by Riley Testut on 11/28/22.
|
|
// Copyright © 2022 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Overrides localizedDescription to check userInfoValueProvider for failure reason
|
|
// instead of default behavior which just returns NSLocalizedFailureErrorKey if present.
|
|
//
|
|
// Must be written in Objective-C for Swift.Error <-> NSError bridging to work correctly.
|
|
@interface ALTWrappedError : NSError
|
|
|
|
@property (copy, nonatomic) NSError *wrappedError;
|
|
|
|
- (instancetype)initWithError:(NSError *)error userInfo:(NSDictionary<NSString *, id> *)userInfo;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|