botify-labs / python-simple-workflow

DISCONTINUED - See README
http://python-simple-workflow.readthedocs.org/
MIT License
18 stars 4 forks source link

Raise the right exception on unknown resource #35

Closed ggreg closed 10 years ago

ggreg commented 10 years ago

When calling WorkflowExecution.signal() on a workflow execution that was closed, it raises a DoesNotExistError("Remote Domain does not exist") exception. It should tell that the workflow execution does not exist instead.

It works this way because it maps a SWFResponseError.error_code == 'UnknownResourceFault' to a domain that does not exist.

To solve this issue, it has to find in the SWFResponseError message which resource is missing.