using GLib;

public class ErrorTest
{
	static void main (string[] args)
	{
		Gtk.init (out args);

		Gdk.Pixbuf pixbuf;
		Gtk.IconTheme icon_theme = Gtk.IconTheme.get_default ();
		try
		{
			pixbuf = icon_theme.load_icon ("foobardoesnotexist", 24,
										   Gtk.IconLookupFlags.FORCE_SVG);
		}
		catch (Error icon_lookup_error)
		{
			critical (icon_lookup_error.message);
		}
	}
}
