view test/throwTest.k @ 16:5e36456a291c draft

add konoha.test
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sun, 03 Jun 2012 01:38:13 +0900
parents da5149cbb9f4
children
line wrap: on
line source

void main(String[] args) 
{
    try {
		//	throw new Script!!("throw Script!!");
//	throw new IO!!("throw IO!!");
		throw new Socket!!("throw Socket!!");
		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;
    } catch (Socket!! e) {
		print "catch Socket!!";
		print e;
    } finally {
		print "finally"
    }


}