Files
sdk/runtime/lib/errors_patch.dart
T
lrn@google.com bc7f07ae86 Move ObjectNotClosureException and ClosureArgumentMismatchException to patch file.
They are no longer available in the core library, and are only used by the VM.

Review URL: https://codereview.chromium.org//11233063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13992 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 06:17:21 +00:00

23 lines
719 B
Dart

// Copyright (c) 2012, 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.
patch class NoSuchMethodError {
/* patch */ static String _objectToString(Object object) {
return Object._toString(object);
}
}
// Exceptions that should be NoSuchMethodError instead.
class _ClosureArgumentMismatchException implements Exception {
const _ClosureArgumentMismatchException();
String toString() => "Closure argument mismatch";
}
class _ObjectNotClosureException implements Exception {
const _ObjectNotClosureException();
String toString() => "Object is not closure";
}