xxxxxxxxxx
try:
# Some code that may raise exceptions
except SpecificException1 as e:
# Handle SpecificException1
except SpecificException2 as e:
# Handle SpecificException2
except Exception as e:
# Handle all other exceptions