2Copy of ROS1 `rospy.exceptions` for ROS2, plus a few other rospy exceptions.
4Supplemented copy from ROS1 `rospy.exceptions`,
5at https://github.com/ros/ros_comm (`clients/rospy/src/rospy/exceptions.py`),
6released under the BSD License.
8------------------------------------------------------------------------------
9This file is part of rosros - simple unified interface to ROS1 / ROS2.
10Released under the BSD License.
15------------------------------------------------------------------------------
17## @namespace rosros.rospify.exceptions
19# Original file copyright notice:
21# Software License Agreement (BSD License)
23# Copyright (c) 2008, Willow Garage, Inc.
26# Redistribution and use in source and binary forms, with or without
27# modification, are permitted provided that the following conditions
30# * Redistributions of source code must retain the above copyright
55 """Base exception class for ROS clients"""
58 """Exception for message serialization errors"""
61 """Exception for errors initializing ROS state"""
65 Exception for operations that interrupted, e.g. due to shutdown.
67 This
is a subclass of both ROSException
and KeyboardInterrupt
68 so that it can be used
in logic that expects either.
71class ROSTimeMovedBackwardsException(ROSInterruptException):
72 """Exception if time moved backwards"""
76 """The amount of time in seconds."""
77 super().
__init__(
"ROS time moved backwards")
80 """Base class for exceptions that are internal to the ROS system"""
82class TransportException(ROSInternalException):
83 """Base class for transport-related exceptions"""
86 """Internal class for representing broken connections"""
89 """Internal exception for representing exceptions that occur establishing transports"""
92 """Exception that is raised when a parameter fails validation checks"""
Base exception class for ROS clients.
Exception for operations that interrupted, e.g.
Base class for exceptions that are internal to the ROS system.
Exception if time moved backwards.
Exception for errors initializing ROS state.
Internal class for representing broken connections.
Exception that is raised when a parameter fails validation checks.
Internal exception for representing exceptions that occur establishing transports.