(self, state_func, automaton, *args, **kargs)
| 477 | |
| 478 | class NewStateRequested(Exception): |
| 479 | def __init__(self, state_func, automaton, *args, **kargs): |
| 480 | # type: (Any, ATMT, Any, Any) -> None |
| 481 | self.func = state_func |
| 482 | self.state = state_func.atmt_state |
| 483 | self.initial = state_func.atmt_initial |
| 484 | self.error = state_func.atmt_error |
| 485 | self.stop = state_func.atmt_stop |
| 486 | self.final = state_func.atmt_final |
| 487 | Exception.__init__(self, "Request state [%s]" % self.state) |
| 488 | self.automaton = automaton |
| 489 | self.args = args |
| 490 | self.kargs = kargs |
| 491 | self.action_parameters() # init action parameters |
| 492 | |
| 493 | def action_parameters(self, *args, **kargs): |
| 494 | # type: (Any, Any) -> ATMT.NewStateRequested |
nothing calls this directly
no test coverage detected