Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError should expose the receiver and memberName from the exception #15169

Closed
jbdeboer opened this issue Nov 19, 2013 · 2 comments
Closed
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@jbdeboer
Copy link

In AngularDart, we catch NoSuchMethodErrors while determining if an expression references a field or a method.

https://github.com/angular/angular.dart/blob/3d2496f9514102dd4aa2ca29f9df60e7a4e73376/lib/core/parser/backend.dart#L51

However, if a field getter throws a NoSuchMethodError due to a bug, we will handle it and return a garbage closure to the user.

If we had access to the 'receiver' in the exception, we would be able to identify actual errors which we should re-throw in this try-catch block.

@sethladd
Copy link
Contributor

Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Triaged labels.

@floitschG
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #6252.

@jbdeboer jbdeboer added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report labels Nov 20, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants