using GLib;

public class Foo {
	public string bar () throws Error {
		try {
			return GLib.FileUtils.read_link("/home");
		} catch (Error e) {
			throw new IOError.FAILED(e.message);
		}
	}
}

int main (string[] args) {
	var foo = new Foo();

	try {
		var str = foo.bar();
		print ("Str: %s\n", str);
	} catch (Error e) {
		print ("Error: %s\n", e.message);
	}

	return 0;
}
