Proper @spec for when errors are raised?

I am trying to make better code by including @spec for my functions. What is the proper type for when a function raises an error?

If it only throws or raises an error, the type is noreturn

3 Likes

thank you!