# KOS_OP_RAISE - **Style**: COUNT. Arg = number of values to pop (e.g. 1 for exception instance). - **Stack**: Pops `arg` values; raises with the popped exception. - **Invariants**: Popped value(s) form the exception to raise. **Example:** Raise exception from TOS (arg = 1). Pool: 0 = ValueError("bad"). | index | opcode | arg | arg view | comment | |------:|--------|-----|----------|---------| | 0 | CONST | 0 | 0 (ValueError(...)) | stack: [..., exc] | | 1 | RAISE | 1 | 1 | pop 1, raise exc; stack unwound |