added condition to verify if a transition is known before throwing an ex...

...ception