rospy overview: Initialization and Shutdown | Messages | Publishers and Subscribers | Services | Parameter Server | Logging | Names and Node Information | Time | Exceptions | tf/Overview | tf/Tutorials | Python Style Guide

The rospy API uses a common set of exceptions to indicate errors to your program. These exceptions are listed and described below. ROSException is the base type of these exceptions and can be used when you wish to capture all rospy-related errors. For a more complete list, including code API documentation, please see the rospy exceptions Code API docs.

ROSException

  • Base exception class for ROS clients

ROSSerializationException

  • Exception for message serialization errors

ROSInitException

  • Exception for errors initializing ROS state

ROSInterruptException

  • Exception for operations that interrupted. This is most commonly used with rospy.sleep() and rospy.Rate

ROSInternalException

  • Base class for exceptions that occur due to internal rospy errors (i.e. bugs).

ServiceException

  • Errors related to communicate with ROS Services

Wiki: rospy/Overview/Exceptions (last edited 2009-10-29 23:28:18 by KenConley)