Exception: Zlib::GzipFile::Error

Inherits:
Error
  • Object
show all
Defined in:
zlib.c,
zlib.c

Overview

Base class of errors that occur when processing GZIP files.

Direct Known Subclasses

CRCError, LengthError, NoFooter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject (readonly)

input gzipped string

Instance Method Details

#inspectObject

Constructs a String of the GzipFile Error



2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
# File 'zlib.c', line 2441

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;
}