viam.errors

Module Contents

exception viam.errors.ViamError[source]

Bases: Exception

Base Viam Error

exception viam.errors.InsecureConnectionError(address: str, authenticated: bool = False)[source]

Bases: ViamError

Exception raised when establishing an insecure connection

address

The endpoint of the connection

authenticated

True if the insecure connection provided credentials

message

Explanation of the error

exception viam.errors.DuplicateResourceError(name: str)[source]

Bases: ViamError

Exception raised when attempting to register a resource with the same name as an existing resource already in the registry

exception viam.errors.ViamGRPCError(message: str = '', grpc_code: grpclib.Status = Status.INTERNAL)[source]

Bases: ViamError

Exception raised if it could happen as a part of GRPC calls.

property grpc_error: grpclib.GRPCError
exception viam.errors.ResourceNotFoundError(resource: str, name: str)[source]

Bases: ViamGRPCError

Exception raised when a resource is not found in the registry

exception viam.errors.MethodNotImplementedError(method_name: str)[source]

Bases: ViamGRPCError

Exception raised when specific methods are unimplemented.

exception viam.errors.NotSupportedError(message: str)[source]

Bases: ViamGRPCError

Exception raised when specific component functionality is not supported

exception viam.errors.ValidationError(message: str)[source]

Bases: ViamGRPCError

Exception raised when there is an error during module validation

exception viam.errors.NoCaptureToStoreError[source]

Bases: ViamGRPCError

Exception raised in filter module to signal that data capture should not be stored