View Single Post
  #1   Spotlight this post!  
Unread 16-02-2012, 09:36
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 165
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Exception Handling Best Practice

Thanks for the input. I've updated our code to try-catch during the init process as Patrick mentioned and throw when there is something catastrophic. One of the reasons I asked was for the CANTimeoutException. We are using CAN and most methods on the CANJaguar throw this exception so we have try-catches everywhere. Don't know if there is anything to do with this... I just increment an error counter and display it to the SmartDashboard. Oddly enough the place I get most of these CANTimeoutExceptions is in the updateStatus() method used to send data back to the SmartDashboard.
Reply With Quote