Update FlowLogic.kt (#3144)

This commit is contained in:
Joel Dudley 2018-05-15 09:40:50 +01:00 committed by GitHub
parent b2e9a427a8
commit dce0956f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,7 +431,8 @@ abstract class FlowLogic<out T> {
*/
var stateMachine: FlowStateMachine<*>
@CordaInternal
get() = _stateMachine ?: throw IllegalStateException("This can only be done after the flow has been started.")
get() = _stateMachine ?: throw IllegalStateException(
"You cannot access the flow's state machine until the flow has been started.")
@CordaInternal
set(value) {
_stateMachine = value