File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
extension/apple/ExecuTorch/Exported Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff 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
7368NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments