DomainError help is:
The arguments to a function or constructor are outside the valid domain.
But I’m not sure of what constitutes “valid” and what the “domain” is?
I’m passing passing a macro generated struct as a argument between functions in different modules, and getting a domain error on some functions but not others with identical type signatures. It doesn’t give any indication of what the true problem is other than LoadError: DomainError: and a backtrace.