lasarobotics / FTCLibrary

Generic function and autonomous library for the FTC Android Platform
MIT License
25 stars 14 forks source link

Simplified Catching #10

Closed treyshaffer closed 9 years ago

treyshaffer commented 9 years ago

If you are treating all of the exceptions the same, then instead of having a bunch of catches, you can catch java.lang.Throwable.

treyshaffer commented 9 years ago

e.printStackTrace() or printing e.getCause() would be a simple way to handle the exceptions in a general manner.