166 lines
4.9 KiB
JSON
Generated
166 lines
4.9 KiB
JSON
Generated
{
|
|
"args": "--target-cpu x86-64-v3 --fp-mode contract=off",
|
|
"askedAt": "2026-11-12T18:21:58+00:00",
|
|
"attempts": 1,
|
|
"compiler": "mojo_1_2_0",
|
|
"firstItem": "manual/code/manual/errors/typed_errors_edge_cases",
|
|
"key": "f52640dd92d6127a38c3b35291149618b87234a556bda48f1dae278b085dfba4",
|
|
"mode": "run",
|
|
"raw": {
|
|
"buildResult": {
|
|
"code": 0,
|
|
"compilationOptions": [
|
|
"build",
|
|
"-g1",
|
|
"-o",
|
|
"/app/output.s",
|
|
"--target-cpu",
|
|
"x86-64-v3",
|
|
"--fp-mode",
|
|
"contract=off",
|
|
"/app/example.mojo",
|
|
"-Xlinker=-L./lib",
|
|
"-Xlinker=-rpath=./lib"
|
|
],
|
|
"defaultExecOptions": {
|
|
"env": {
|
|
"CPLUS_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu",
|
|
"C_INCLUDE_PATH": "/usr/include/x86_64-linux-gnu",
|
|
"HOME": "/home/ce",
|
|
"LD_LIBRARY_PATH": "",
|
|
"LIBRARY_PATH": "/usr/lib/x86_64-linux-gnu",
|
|
"MODULAR_CRASH_REPORTING_ENABLED": "false",
|
|
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
|
},
|
|
"maxErrorOutput": 5000,
|
|
"timeoutMs": 20000
|
|
},
|
|
"downloads": [],
|
|
"execTime": 4552,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compilerFnV83A/output.s",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"packageStoreTime": 56,
|
|
"preparedLdPaths": [
|
|
"/opt/compiler-explorer/mojo-1.2.0/lib",
|
|
"/opt/compiler-explorer/mojo-1.2.0/lib32",
|
|
"/opt/compiler-explorer/mojo-1.2.0/lib64"
|
|
],
|
|
"processExecutionResultTime": 0.004003999754786491,
|
|
"stderr": [],
|
|
"stdout": [],
|
|
"timedOut": false,
|
|
"truncated": false
|
|
},
|
|
"code": 0,
|
|
"didExecute": true,
|
|
"execTime": 33,
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.03950899839401245,
|
|
"queueTime": 5,
|
|
"stderr": [],
|
|
"stdout": [
|
|
{
|
|
"text": "=== Pattern 1: Nested try blocks ==="
|
|
},
|
|
{
|
|
"text": "Unified error: ApplicationError[network]: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": " Source: network"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 2: Error propagation ==="
|
|
},
|
|
{
|
|
"text": "Propagated through 3 levels: NetworkError[500]: Server error"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 3: Re-raising ==="
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "--- With logging ---"
|
|
},
|
|
{
|
|
"text": "Logging before re-raise: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": "After re-raise: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "--- As different type ---"
|
|
},
|
|
{
|
|
"text": "Converted: ApplicationError[network]: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "--- Modified ---"
|
|
},
|
|
{
|
|
"text": "Modified: NetworkError[404]: [Modified] Resource not found"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "=== Pattern 4: Error suppression ==="
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "--- Return default ---"
|
|
},
|
|
{
|
|
"text": "Suppressed error: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": "Got result: default value"
|
|
},
|
|
{
|
|
"text": ""
|
|
},
|
|
{
|
|
"text": "--- Continue execution ---"
|
|
},
|
|
{
|
|
"text": "Ignored error: NetworkError[404]: Resource not found"
|
|
},
|
|
{
|
|
"text": "Continuing after suppressed error"
|
|
}
|
|
],
|
|
"timedOut": false,
|
|
"truncated": false
|
|
},
|
|
"result": {
|
|
"asm": null,
|
|
"buildStderr": "",
|
|
"compiled": true,
|
|
"executed": true,
|
|
"exitCode": 0,
|
|
"stderr": "",
|
|
"stdout": "=== Pattern 1: Nested try blocks ===\nUnified error: ApplicationError[network]: NetworkError[404]: Resource not found\n Source: network\n\n=== Pattern 2: Error propagation ===\nPropagated through 3 levels: NetworkError[500]: Server error\n\n=== Pattern 3: Re-raising ===\n\n--- With logging ---\nLogging before re-raise: NetworkError[404]: Resource not found\nAfter re-raise: NetworkError[404]: Resource not found\n\n--- As different type ---\nConverted: ApplicationError[network]: NetworkError[404]: Resource not found\n\n--- Modified ---\nModified: NetworkError[404]: [Modified] Resource not found\n\n=== Pattern 4: Error suppression ===\n\n--- Return default ---\nSuppressed error: NetworkError[404]: Resource not found\nGot result: default value\n\n--- Continue execution ---\nIgnored error: NetworkError[404]: Resource not found\nContinuing after suppressed error",
|
|
"timedOut": false
|
|
},
|
|
"seconds": 4.96,
|
|
"sourceSha256": "455b0df381cf30de4dfd22a121e7804f149b766e1d9c26a2776739a69a628e65",
|
|
"stdin": ""
|
|
}
|