Mercurial > hg > Members > nobuyasu > konoha
view test/throwTest.k @ 12:da5149cbb9f4 draft
add http/test/urlTest.k
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 28 May 2012 22:39:46 +0900 |
parents | ed611531a49b |
children | 5e36456a291c |
line wrap: on
line source
void main(String[] args) { try { // throw new Script!!("throw Script!!"); // throw new IO!!("throw IO!!"); throw new MyError!!("throw MyError!!"); } catch (Script!! e) { print "catch Script!!"; print e; } catch (IO!! e) { print "catch IO!!"; print e; } catch (MyError!! e) { print "catch MyError!!"; print e; } finally { print "finally" } }