Kernel.TypespecError exception (Elixir v1.19.1)
View SourceAn exception raised when there's an error in a typespec.
For example, if your typespec definition points to an invalid type, you get an exception:
@type my_type :: intger()will raise:
** (Kernel.TypespecError) type intger/0 undefinedThe following fields of this exceptions are public and can be accessed freely:
:file(Path.t/0ornil) - the file where the error occurred, ornilif the error occurred in code that did not come from a file:line(non_neg_integer/0) - the line where the error occurred