Determine all exceptions thrown by an activity


Is there a way to determine which all exceptions can be thrown by a particular activity (without simply running the code and observing which exceptions are thrown)? Rather than just catching exception type “exception” in a try-catch, I want to catch exceptions in a specific order, based on which exception types can be thrown by the activity.