Throws
Add the Throws
section to Quick Help for a symbol using the Throws delimiter. Use the throws section to specify any errors thrown by a method or function
Works with:
Playgrounds
✓ Symbol documentation
Syntax
* | + | - Throws : description
optional continuation of description
The description displayed in Quick Help for the throws section is created as described in Parameters Section.
Example
/// - Throws: An error of type `FakeArrayError`

Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05