It gives you the ability to make a custom error and then raise it. It would be used in conjuction with a try/except statement.
Eg:
try:
print("Hi")
except:
raise MyError("Whoops!")
19th Jul 2016, 1:30 AM
jj Fer
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :