MCPcopy Create free account
hub / github.com/apify/crawlee-python / ServiceConflictError

Class ServiceConflictError

src/crawlee/errors.py:45–52  ·  view source on GitHub ↗

Raised when attempting to reassign a service in service container that is already in use.

Source from the content-addressed store, hash-verified

43
44@docs_group('Errors')
45class ServiceConflictError(Exception):
46 """Raised when attempting to reassign a service in service container that is already in use."""
47
48 def __init__(self, service: type, new_value: object, existing_value: object) -> None:
49 super().__init__(
50 f'Service {service.__name__} is already in use. Existing value: {existing_value}, '
51 f'attempted new value: {new_value}.'
52 )
53
54
55@docs_group('Errors')

Callers 3

set_configurationMethod · 0.90
set_event_managerMethod · 0.90
set_storage_clientMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected