How to discover possible Exceptions?

Asked

Viewed 24 times

0

Example, in http requests we can have SocketException, TimeoutException,etc.

In I/O operations we also have other possible Exceptions.

Not to have to treat in a generic way, ex: catch (e), how to discover (documentation, etc.) what are the possible Exceptions that can occur taking as an example the cases mentioned above?

  • In summary for all languages: read the documentation.

  • https://www.tutorialspoint.com/dart_programming/dart_programming_exceptions.htm

  • This is not documentation, it’s bad text on the subject. Documentation is from the API, each has its own.

  • 1

    The official documentation doesn’t help much either (https://api.dart.dev/stable/2.8.4/dart-core/Exception-class.html) .

  • Help, have to look from each API, no use looking at the class Exception, same error of accepted answer and AP in PHP duplicate I added. No list, impossible to have.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.