> Is there a method to determine what exceptions an object might throw > for a given method call using reflection? 1. A method can throw any exception that any method that it calls can throw, except for the ones that it handles. This makes it difficult to know just by analysing the method's code. 2. You can pass any exception object to a 'raise' expression. This includes determining an exception class at run time and raising that. The answer is: I think it would be pretty difficult just by analysing the code. > It seems to me a natural (and useful) extension to refelction, since > writing really robust code requires that you know exactly what might > get thrown by any method call. take a look at "programming by contract" and "unit testing". There are implementations of this for Ruby. matju