mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:27:39 +00:00
[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 <zra@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Zichang Guo <zichangguo@google.com>
This commit is contained in:
parent
8c4909aa8f
commit
ae392b8e00
|
@ -52,7 +52,7 @@ abstract class IOException implements Exception {
|
||||||
* operating system.
|
* operating system.
|
||||||
*/
|
*/
|
||||||
@pragma("vm:entry-point")
|
@pragma("vm:entry-point")
|
||||||
class OSError {
|
class OSError implements Exception {
|
||||||
/** Constant used to indicate that no OS error code is available. */
|
/** Constant used to indicate that no OS error code is available. */
|
||||||
static const int noErrorCode = -1;
|
static const int noErrorCode = -1;
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ abstract class IOException implements Exception {
|
||||||
* operating system.
|
* operating system.
|
||||||
*/
|
*/
|
||||||
@pragma("vm:entry-point")
|
@pragma("vm:entry-point")
|
||||||
class OSError {
|
class OSError implements Exception {
|
||||||
/** Constant used to indicate that no OS error code is available. */
|
/** Constant used to indicate that no OS error code is available. */
|
||||||
static const int noErrorCode = -1;
|
static const int noErrorCode = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue