ruby-****@sourc*****
ruby-****@sourc*****
2009年 1月 25日 (日) 04:44:46 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dialog-about ------------------------- @@ -103,7 +103,14 @@ puts "All went well." end - The ((*domain*)) and ((*code*)) methods of exception object should provide additional subcategories for the exception. Indeed you should be familiar with error codes, to utilize these programmatically. + The ((*domain*)) and ((*code*)) methods of exception object should provide additional subcategories for the exception. Indeed you should be familiar with error codes, to utilize these programmatically, for instance: + + rescue Gdk::PixbufError => err + if err.code == Gdk::PixbufError::CORRUPT_IMAGE + print "Your image in file: %s is corupted, please replace it\n" %[file] + end + ... + === Resizing and image interpolation modes