/Python/Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
0
Source: sanfoundry.com
- 17 votes173 views4 answers
- 1 vote189 views1 answer
- 0 vote253 views1 answer
- 29 votes157 views4 answers
- 7 votes134 views1 answer
- 10 votes173 views3 answers
- 0 vote210 views1 answer
- 3 votes173 views1 answer
- 0 vote262 views1 answer
- 0 vote185 views1 answer