Sandro Munda
Sandro Munda

Reputation: 41078

How to retrieve the list of exceptions of a function or a method

How can I have a clean list of exceptions that a standard function/method can raise ? Without that, how can I anticipate the behavior of a function ?

Thanks.

Upvotes: 1

Views: 126

Answers (1)

Sylvain Defresne
Sylvain Defresne

Reputation: 44593

There is no way to get a full list of exception a function can raise. You can look in the documentation, some functions list the exceptions they raise.

Upvotes: 3

Related Questions