FWIW, I didn't manage to use a typed exception for this problem. It's been a while since I tried, but IIRC my guess was that I had no access to typed exceptions in class Perl6::ModuleLoader.