File: exceptions.dart.faceup

package info (click to toggle)
emacs-dart-mode 1.0.7%2Bgit20250811.edb45cb-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: lisp: 613; makefile: 29
file content (14 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
«k:if» (astronauts == «c:0») {
  «k:throw» «t:StateError»(«s:'No astronauts.'»);
}

«k:try» {
  «k:for» («k:var» «v:object» «k:in» flybyObjects) {
    «k:var» «v:description» = «k:await» «t:File»(«s:'»«v:$object»«s:.txt'»).readAsString();
    print(description);
  }
} on «t:IOException» «k:catch» («v:e») {
  print(«s:'Could not describe object: »«v:$e»«s:'»);
} «k:finally» {
  flybyObjects.clear();
}