dart-sdk/sdk_nnbd/lib/internal/errors.dart
Johnni Winther 5013ce6e5d [cfe] Use correct types and errors in late lowering
Change-Id: I6e7dcbd96e151a69fc67a6cd5e5af1620760b02a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126647
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2019-12-02 15:00:18 +00:00

20 lines
575 B
Dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of dart._internal;
class LateInitializationErrorImpl extends Error
implements LateInitializationError {
final String? _message;
LateInitializationErrorImpl([this._message]);
String toString() {
var message = _message;
return (message != null)
? "LateInitializationError: $message"
: "LateInitializationError";
}
}