rclpy.exceptions module

exception rclpy.exceptions.InvalidNamespaceException(name, error_msg, invalid_index, *args)

Bases: NameValidationException

Raised when a namespace is invalid.

exception rclpy.exceptions.InvalidNodeNameException(name, error_msg, invalid_index, *args)

Bases: NameValidationException

Raised when a node name is invalid.

exception rclpy.exceptions.InvalidParameterException(parameter, *args)

Bases: ParameterException

Raised when a parameter to be declared has an invalid name.

exception rclpy.exceptions.InvalidParameterTypeException(desired_parameter, expected_type, *args)

Bases: ParameterException

Raised when a parameter is rejected for having an invalid type.

exception rclpy.exceptions.InvalidParameterValueException(parameter, value, reason, *args)

Bases: ParameterException

Raised when a parameter is rejected by a user callback or when applying a descriptor.

exception rclpy.exceptions.InvalidServiceNameException(name, error_msg, invalid_index, *args)

Bases: NameValidationException

Raised when a service name is invalid.

exception rclpy.exceptions.InvalidTopicNameException(name, error_msg, invalid_index, *args)

Bases: NameValidationException

Raised when a topic name is invalid.

exception rclpy.exceptions.NameValidationException(name_type, name, error_msg, invalid_index, *args)

Bases: Exception

Raised when a topic name, node name, or namespace are invalid.

exception rclpy.exceptions.NoTypeSupportImportedException(*args)

Bases: Exception

Raised when there is no type support imported.

exception rclpy.exceptions.NotInitializedException(*args)

Bases: Exception

Raised when the rclpy implementation is accessed before rclpy.init().

exception rclpy.exceptions.ParameterAlreadyDeclaredException(parameters, *args)

Bases: ParameterException

Raised when declaring a parameter that had been declared before.

exception rclpy.exceptions.ParameterException(error_msg, parameters, *args)

Bases: Exception

Base exception for parameter-related errors.

exception rclpy.exceptions.ParameterImmutableException(parameter, *args)

Bases: ParameterException

Raised when a read-only parameter is modified.

exception rclpy.exceptions.ParameterNotDeclaredException(parameters, *args)

Bases: ParameterException

Raised when handling an undeclared parameter when it is not allowed.

exception rclpy.exceptions.ParameterUninitializedException(parameter_name, *args)

Bases: ParameterException

Raised when an uninitialized parameter is accessed.

exception rclpy.exceptions.ROSInterruptException(*args)

Bases: Exception

Raised when an operation is canceled by rclpy shutting down.