<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><ahref="safely-without-exceptions.html">T</a><spanclass="token operator">></span><ahref="safely-without-exceptions.html"><spanclass="token function">safelyWithoutExceptions</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">onException<spanclass="token operator">: </span><ahref="-exception-handler/index.html">ExceptionHandler</a><spanclass="token operator"><</span><ahref="safely-without-exceptions.html">T</a><spanclass="token operator">></span><spanclass="token operator"> = </span>defaultSafelyExceptionHandler<spanclass="token punctuation">, </span></span><spanclass="parameter ">block<spanclass="token operator">: </span><spanclass="token keyword">suspend </span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><ahref="safely-without-exceptions.html">T</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="safely-without-exceptions.html">T</a><spanclass="token operator">?</span><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/MicroUtils/blob/master//coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/HandleSafely.kt#L140">source</a>)</span></span></div><pclass="paragraph">Shortcut for <ahref="safely.html">safely</a> with exception handler, that as expected must return null in case of impossible creating of result from exception (instead of throwing it, by default always returns null)</p></div></div>