Exception: Zlib::GzipFile::Error
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Zlib::Error ,
::StandardError ,
Exception
|
|
Instance Chain:
self,
::Zlib::Error ,
::StandardError ,
Exception
|
|
Inherits: |
Zlib::Error
|
Defined in: | ext/zlib/zlib.c, ext/zlib/zlib.c |
Overview
Base class of errors that occur when processing GZIP files.
Instance Attribute Summary
-
#input
readonly
input gzipped string.
Instance Method Summary
-
#inspect
Constructs a String of the
::Zlib::GzipFile
Error.
Instance Attribute Details
#input (readonly)
input gzipped string
Instance Method Details
#inspect
Constructs a String of the ::Zlib::GzipFile
Error
# File 'ext/zlib/zlib.c', line 2625
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; }