{"route":"/en-US-v0.14.1/reference/foundations/panic/","title":"Panic","description":"Documentation for the `panic` function.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"example","name":"Example","children":[]},{"id":"parameters","name":"Parameters","children":[{"id":"parameters-values","name":"values","children":[]}]}],"body":{"kind":"func","content":{"path":[],"name":"panic","title":"Panic","keywords":["error"],"oneliner":"Fails with an error.","element":false,"contextual":false,"deprecationMessage":null,"deprecationUntil":null,"details":[{"kind":"html","content":"<p>Fails with an error.</p>\n<p>Arguments are displayed to the user (not rendered in the document) as\nstrings, converting with <code>repr</code> if necessary.</p>\n<h2 id=\"example\">Example</h2>\n<p>The code below produces the error <code>panicked with: &quot;this is wrong&quot;</code>.</p>\n<pre><code><span class=\"typ-func\">#</span><span class=\"typ-func\">panic</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;this is wrong&quot;</span><span class=\"typ-punct\">)</span>\n</code></pre>"}],"self":false,"params":[{"name":"values","details":[{"kind":"html","content":"<p>The values to panic with and display to the user.</p>"}],"types":["any"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":true,"settable":false}],"returns":[],"scope":[]}}}