{ "args": "", "askedAt": "2026-10-03T14:18:10+00:00", "compiler": "mojo_1_1_0", "firstItem": "manual/code/manual/errors/test_variant_errors", "key": "f0db8a5f6b1de6a8e8872e72f892f8076a48b34aa3081a7dabf0dacd98744de2", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "/app/example.mojo" ], "downloads": [], "execTime": 246, "executableFilename": "/nosym/tmp/compiler-explorer-compilerpyS4Me/example", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.07551200315356255, "stderr": [ { "tag": { "column": 6, "file": "example.mojo", "line": 15, "severity": 3, "text": "error: unable to locate module 'variant_errors'" }, "text": ":15:6: error: unable to locate module 'variant_errors'" }, { "text": "from variant_errors import FileError, NotFoundError, PermissionError, open_file" }, { "text": " ^" }, { "tag": { "column": 13, "file": "example.mojo", "line": 39, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":39:13: error: 'Error' value has no attribute 'isa'" }, { "text": " if e.isa[NotFoundError]():" }, { "text": " ~^" }, { "tag": { "column": 13, "file": "example.mojo", "line": 53, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":53:13: error: 'Error' value has no attribute 'isa'" }, { "text": " if e.isa[PermissionError]():" }, { "text": " ~^" }, { "tag": { "column": 25, "file": "example.mojo", "line": 67, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":67:25: error: 'Error' value has no attribute 'isa'" }, { "text": " is_not_found = e.isa[NotFoundError]()" }, { "text": " ~^" }, { "tag": { "column": 26, "file": "example.mojo", "line": 68, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":68:26: error: 'Error' value has no attribute 'isa'" }, { "text": " is_permission = e.isa[PermissionError]()" }, { "text": " ~^" }, { "text": "/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": -1, "didExecute": false, "execTime": 337, "okToCache": false, "queueTime": 5, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":15:6: error: unable to locate module 'variant_errors'\nfrom variant_errors import FileError, NotFoundError, PermissionError, open_file\n ^\n:39:13: error: 'Error' value has no attribute 'isa'\n if e.isa[NotFoundError]():\n ~^\n:53:13: error: 'Error' value has no attribute 'isa'\n if e.isa[PermissionError]():\n ~^\n:67:25: error: 'Error' value has no attribute 'isa'\n is_not_found = e.isa[NotFoundError]()\n ~^\n:68:26: error: 'Error' value has no attribute 'isa'\n is_permission = e.isa[PermissionError]()\n ~^\n/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module", "compiled": false, "executed": false, "exitCode": -1, "stderr": "Build failed", "stdout": "", "timedOut": false }, "seconds": 0.54, "sourceSha256": "15415403dc27177cf32387ea347a74e86d629d621ed0cc91cedb6b1ec98e17cd", "stdin": "" }