Class: Zlib::GzipFile::Error (Ruby 2.3.7)
Description: Class : Zlib::GzipFile::Error - Ruby 2.3.7

- Home
- Core 2.3.7
- Std-lib 2.3.7
- Downloads

Support for the Ruby 2.3 series has ended. See here for reference.

### Home Classes Methods

### In Files

- zlib/zlib.c

### Parent

Zlib::Error

### Methods

- #inspect

### Class/Module Index

Quicksearch

- Zlib
- Zlib::BufError
- Zlib::DataError
- Zlib::Deflate
- Zlib::Error
- Zlib::GzipFile
- Zlib::GzipFile::CRCError
- Zlib::GzipFile::Error
- Zlib::GzipFile::LengthError
- Zlib::GzipFile::NoFooter
- Zlib::GzipReader
- Zlib::GzipWriter
- Zlib::Inflate
- Zlib::MemError
- Zlib::NeedDict
- Zlib::StreamEnd
- Zlib::StreamError
- Zlib::VersionError
- Zlib::ZStream
- unknown

No matching classes.

# Zlib::GzipFile::Error

Base class of errors that occur when processing GZIP files.

### Attributes

input[R]

input gzipped string

### Public Instance Methods

inspect() click to toggle source

Constructs a String of the GzipFile Error

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