> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function revert

Module: `noir_aztec::oracle::avm`

```rust
pub unconstrained fn revert(revertdata: [Field])
```

This opcode reverts using the exact data given. In general it should only be used to do rethrows, where the revert data is the same as the original revert data. For normal reverts, use Noir's `assert` which, on top of reverting, will also add an error selector to the revert data.
