The compiler has a `WireCompilerException` which it throws for compilation exceptions. Maybe use that + `IOException`?