Exception: Magick::ImageMagickError
- Inherits:
-
StandardError
- Object
- StandardError
- Magick::ImageMagickError
- Defined in:
- ext/RMagick/rmmain.c
Instance Method Summary collapse
-
#initialize(msg, loc = nil) ⇒ Magick::ImageMagickError
constructor
Initialize a new ImageMagickError object - store the “loc” string in the magick_location instance variable.
Constructor Details
#initialize(msg, loc = nil) ⇒ Magick::ImageMagickError
Initialize a new ImageMagickError object - store the “loc” string in the magick_location instance variable.
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 |
# File 'ext/RMagick/rmutil.c', line 893
VALUE
ImageMagickError_initialize(int argc, VALUE *argv, VALUE self)
{
VALUE super_argv[1] = {(VALUE)0};
int super_argc = 0;
VALUE extra = Qnil;
switch(argc)
{
case 2:
extra = argv[1];
case 1:
super_argv[0] = argv[0];
super_argc = 1;
case 0:
break;
default:
rb_raise(rb_eArgError, "wrong number of arguments (%d for 0 to 2)", argc);
}
rb_call_super(super_argc, (const VALUE *)super_argv);
rb_iv_set(self, "@"MAGICK_LOC, extra);
RB_GC_GUARD(extra);
return self;
}
|