try { # your code here } catch { only { FileNotFoundError }; # ° # handle exception } catch { only { IsADirectoryError }; # handle exception } catch { # * # all other types of exceptions }; print('Should reach here')