s="paragraph">Here's an example of calling this function from Kotlin code:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val isSuccess: Boolean = try {<br>    StrictlyNegativeInt.create(-7)<br>    true<br>} catch (exception: IllegalArgumentException) {<br>    false<br>}<br>assertTrue(isSuccess)</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied