Exception: Zlib::GzipFile::Error
- Defined in:
- zlib.c,
zlib.c
Overview
Base class of errors that occur when processing GZIP files.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
input gzipped string.
Instance Method Summary collapse
-
#inspect ⇒ Object
Constructs a String of the GzipFile Error.
Instance Attribute Details
#input ⇒ Object (readonly)
input gzipped string
Instance Method Details
#inspect ⇒ Object
Constructs a String of the GzipFile Error
2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 |
# File 'zlib.c', line 2561
static VALUE
gzfile_error_inspect(VALUE error)
{
VALUE str = rb_call_super(0, 0);
VALUE input = rb_attr_get(error, id_input);
if (!NIL_P(input)) {
rb_str_resize(str, RSTRING_LEN(str)-1);
rb_str_cat2(str, ", input=");
rb_str_append(str, rb_str_inspect(input));
rb_str_cat2(str, ">");
}
return str;
}
|