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

Add a method “exceptions” to the types which can throw exceptions #6379

Closed
scabug opened this issue Sep 17, 2012 · 3 comments
Closed

Add a method “exceptions” to the types which can throw exceptions #6379

scabug opened this issue Sep 17, 2012 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 17, 2012

To get a list of exception which could be possibly thrown, it is currently necessary to dig into the members annotations, then work with AnnotationInfo and filter the annotations for ThrowsClass and extract the type from there.

I think it would make sense to expose a method called “exceptions” on the members directly, because the current way

  • is just an implementation detail
  • is not obvious, especially if the throws info comes from a Java method, which doesn't even use @throws
@scabug
Copy link
Author

scabug commented Sep 17, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6379?orig=1
Reporter: @soc
Affected Versions: 2.10.0-M7

@scabug
Copy link
Author

scabug commented Dec 13, 2012

@adriaanm said:
(Pushing reflection bugs to 2.11 to aid scheduling -- as it's experimental in 2.10.x, it shouldn't influence 2.10's schedule. They may be fixed earlier, of course.)

@scabug
Copy link
Author

scabug commented Feb 1, 2014

@xeno-by said:
scala/scala#3452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants