Open Trikke opened 10 years ago
Could this be related to #31?
In a sense, yes. It would be nice if we can state what @icicles can be nullable. But I still think it's a good idea to be as descriptive as possible when throwing exceptions in a library which injects code. Butterknife is a good example for this, if a View cannot be found, it throws an error stating the resource ID and field name. It would be nice if Icepick would let me know what @icicle it has troubles with.
I suppose every statement could be wrapped in a try/catch block that will provide all the necessary info if it fails. Sounds useful.
Would it be possible to have a more descriptive exception on null objects or any exception detailing one of the objects being injected?
Currently i have an Activity with a large number of @Icicles, and it's hard to find out which one is wrong once users report this error through Google Play.