> ## Documentation Index
> Fetch the complete documentation index at: https://prism-ddf93e61.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# resolve_contract_error

> Resolves custom error codes via WASM metadata.

```rust theme={null}
pub async fn resolve_contract_error(
    contract_id: &str,
    error_index: u32,
    wasm_cache: &WasmCache
) -> Result<ResolvedError, PrismError>
```

Parses the `contractspecv0` sections of the contract's WASM to resolve numeric error codes into human-readable enum names.
