---
layout: "default"
title: "fatalError"
description: "Swift documentation for 'fatalError': Unconditionally prints a given message and stops execution."
keywords: "fatalError,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func-fatalerror_-autoclosure-string-file_-staticstring-line_-uint">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-fatalerror_-autoclosure-string-file_-staticstring-line_-uint">func fatalError(<wbr>_: @autoclosure (<wbr>) -&gt; String, file:<