Description
What if someone wants to write some custom Java interface that is aware of the fact that it's going to be used in Dart. Maybe in this case the developer would want to catch Dart exceptions which we currently don't allow. I personally don't think this is of the highest priority. (Discussion dart-archive/jnigen#376 (comment))
- [ ] Support handling DartException
s in custom code
Edit: We'll not support the above, it's encouraged to throw existing Java exceptions from Dart which is now supported.
Another thing that users might want to do is throw actual Java exceptions. This seems to be useful actually, and we could use the same Dart throw
keyword to achieve this by checking if the exception thrown is of type JException
.
However currently JException
doesn't inherit JObject
, we can change this by adding the Throwable
and Exception
types as core types to package:jni
.
Metadata
Metadata
Assignees
Type
Projects
Status