<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.behaviour_builder.fsm:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><spanclass="token operator"><</span><ahref="fsm-or-throw.html">T</a><spanclass="token operator"> : </span><spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span><spanclass="token operator">></span><ahref="../../tgbotapi.behaviour_builder/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html">BehaviourContext</a><spanclass="token punctuation">.</span><ahref="fsm-or-throw.html"><spanclass="token function">fsmOrThrow</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesMachine///PointingToDeclaration/">StatesMachine</span><spanclass="token operator"><</span><ahref="fsm-or-throw.html">T</a><spanclass="token operator">></span></div><pclass="paragraph">Extracting from <ahref="-default-behaviour-context-with-f-s-m/index.html#1703007308%2FProperties%2F983072464">BehaviourContext.data</a> exists <spandata-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesMachine///PointingToDeclaration/">StatesMachine</span> by key <ahref="-behaviour-context-with-f-s-m/-companion/-d-a-t-a_-f-s-m_-k-e-y.html">DATA_FSM_KEY</a>, which usually some <ahref="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>. In case if value absent in <ahref="-default-behaviour-context-with-f-s-m/index.html#1703007308%2FProperties%2F983072464">BehaviourContext.data</a> will throw <ahref="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html">NullPointerException</a></p><h4class="">Throws</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.behaviour_builder.fsm:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.behaviour_builder.fsm:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html"><span>Null</span><wbr><span>Pointer</span><wbr><span><span>Exception</span></span></a></div></span></div><div></div></div></div></div></div></div>