Skip to content

Commit edbc7b6

Browse files
authored
Update ExecuTorchError.h
1 parent f762ea2 commit edbc7b6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchError.h

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,12 @@ NSString *ExecuTorchErrorDescription(ExecuTorchErrorCode code)
5757
NS_SWIFT_NAME(ErrorDescription(_:));
5858

5959
/**
60-
* NSError convenience initializer for ExecuTorch errors.
60+
* Create an NSError in the ExecuTorch domain for the given code.
6161
*
62-
* @param code The ExecuTorchErrorCode to wrap into an NSError.
62+
* @param code The ExecuTorchErrorCode to wrap.
6363
* @return An NSError with ExecuTorchErrorDomain, the specified code, and a localized description.
6464
*/
65-
@interface NSError (ExecuTorch)
66-
67-
+ (instancetype)errorWithExecuTorchCode:(ExecuTorchErrorCode)code
68-
__attribute__((deprecated("This API is experimental.")))
69-
NS_SWIFT_NAME(init(code:));
70-
71-
@end
65+
FOUNDATION_EXPORT NSError *ExecuTorchErrorWithCode(ExecuTorchErrorCode code)
66+
NS_SWIFT_NAME(Error(code:));
7267

7368
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)