# Multiple errors with static types

**URL:** <https://forums.swift.org/t/multiple-errors-with-static-types/76672>\
**Category:** Using Swift\
**Tags:** typed-throws\
**Created:** [December 16, 2024, 3:21pm UTC](https://forums.swift.org/t/multiple-errors-with-static-types/76672 "2024-12-16T15:21:55Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [December 18, 2024, 6:39pm UTC](https://forums.swift.org/t/multiple-errors-with-static-types/76672/22 "2024-12-18T18:39:15Z")

</div>

> [@Lua](#):
>
> This must be from before Embedded Swift since "one should use `any Error`" completely disregards the fact that existentials don't exist in this mode :(

It is not the intention of the language to restrict the use of untyped errors in Embedded Swift. If it's not possible to do so today, it is a shortcoming and not by design:

> [@Embedded Swift](https://forums.swift.org/t/embedded-swift/67057/17):
>
> Typed throws might be a good feature in and of itself, but requiring its use in embedded Swift could be a pretty severe dialectization wedge. Our guidance for long-term stable APIs will likely still be to recommend untyped errors to allow for library evolution, and we'd want libraries that intend to target both desktop and embedded Swift to follow that guidance without having to diverge their APIs.

---

_[View the full topic](https://forums.swift.org/t/multiple-errors-with-static-types/76672)._
