try:
# Statements
except:
print(e)
try:
# Statements
except Exception as e:
print(e)
try:
# Statements
except ErrorName1:
print(e)
except ErrorName2:
print(e)
try:
# Statements
except:
# Statements
finally:
# Statements
if condition:
raise ErrorName("value")
class CustomException(Exception):
# Statements
try:
# Statements
except CustomError:
# Statements