mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:11:19 +00:00
Cross-link from Exception to Error
Change-Id: I6179032ac6cfd1057911e7421843475504974850 CoreLibraryReviewExempt: Documentation only. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/282024 Reviewed-by: Lasse Nielsen <lrn@google.com> Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Michael Thomsen <mit@google.com>
This commit is contained in:
parent
d89ae3c2c6
commit
6194adf8ea
|
@ -16,6 +16,9 @@ part of dart.core;
|
|||
/// is discouraged in library code since it doesn't give users a precise
|
||||
/// type they can catch. It may be reasonable to use instances of this
|
||||
/// class in tests or during development.
|
||||
///
|
||||
/// For failures that are not intended to be caught, use [Error]
|
||||
/// and its subclasses.
|
||||
@pragma('flutter:keep-to-string-in-subtypes')
|
||||
abstract class Exception {
|
||||
factory Exception([var message]) => _Exception(message);
|
||||
|
|
Loading…
Reference in a new issue