Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 310 Bytes

File metadata and controls

10 lines (8 loc) · 310 Bytes

Exercise 50

Please raise a RuntimeError exception.

Code

raise RuntimeError("something wrong")

ChatGPT Explanation

The code raises a RuntimeError exception with the message "something wrong". When this exception is raised, the program execution stops and an error message is displayed.