Skip to content

Commit 4d86b29

Browse files
authored
Update ExecuTorchError.h (#11007)
1 parent fff7b3c commit 4d86b29

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)