Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions villas/controller/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,19 @@ def ping(self, payload):
self.publish_status()

def start(self, payload):
raise SimulationException('The component can not be started')
raise SimulationException(self, 'The component can not be started')

def stop(self, payload):
raise SimulationException('The component can not be stopped')
raise SimulationException(self, 'The component can not be stopped')

def pause(self, payload):
raise SimulationException('The component can not be paused')
raise SimulationException(self, 'The component can not be paused')

def resume(self, payload):
raise SimulationException('The component can not be resumed')
raise SimulationException(self, 'The component can not be resumed')

def shutdown(self, payload):
raise SimulationException('The component can not be shut down')
raise SimulationException(self, 'The component can not be shut down')

def reset(self, payload):
self.started = time.time()
Expand Down