Python

Python: Throw Exception

raise Exception('Message here')
Link to original

Javascript/Typescript

Rust