Skip to content

Commit c40b0ac

Browse files
authored
Merge branch 'main' into migrate-pt2e-top-level
2 parents 5ebff0a + 4d86b29 commit c40b0ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/apple/ExecuTorch/Exported/ExecuTorchError.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ NSString *ExecuTorchErrorDescription(ExecuTorchErrorCode code)
6262
* @param code The ExecuTorchErrorCode to wrap.
6363
* @return An NSError with ExecuTorchErrorDomain, the specified code, and a localized description.
6464
*/
65-
FOUNDATION_EXPORT NSError *ExecuTorchErrorWithCode(ExecuTorchErrorCode code)
65+
FOUNDATION_EXPORT
66+
__attribute__((deprecated("This API is experimental.")))
67+
NSError *ExecuTorchErrorWithCode(ExecuTorchErrorCode code)
6668
NS_SWIFT_NAME(Error(code:));
6769

6870
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)