From ae392b8e007f2a2ad42fab96b7156c0fc68c49c7 Mon Sep 17 00:00:00 2001 From: Zichang Guo Date: Tue, 24 Mar 2020 22:43:57 +0000 Subject: [PATCH] [dart:io] Making OSError implements Exception Bug: https://github.com/dart-lang/sdk/issues/40934 Change-Id: Icff457333bd570d81cdf9c3136ee4fe1cadfaae8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139406 Reviewed-by: Zach Anderson Reviewed-by: Siva Annamalai Commit-Queue: Zichang Guo --- sdk/lib/io/common.dart | 2 +- sdk_nnbd/lib/io/common.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart index e6b5547ea25..dd45dbda2f4 100644 --- a/sdk/lib/io/common.dart +++ b/sdk/lib/io/common.dart @@ -52,7 +52,7 @@ abstract class IOException implements Exception { * operating system. */ @pragma("vm:entry-point") -class OSError { +class OSError implements Exception { /** Constant used to indicate that no OS error code is available. */ static const int noErrorCode = -1; diff --git a/sdk_nnbd/lib/io/common.dart b/sdk_nnbd/lib/io/common.dart index e6a56bc2cab..dd4e46f1ded 100644 --- a/sdk_nnbd/lib/io/common.dart +++ b/sdk_nnbd/lib/io/common.dart @@ -50,7 +50,7 @@ abstract class IOException implements Exception { * operating system. */ @pragma("vm:entry-point") -class OSError { +class OSError implements Exception { /** Constant used to indicate that no OS error code is available. */ static const int noErrorCode = -1;