Exception: Zip::Bzip2::DataError

Inherits:
Error
  • Object
show all
Defined in:
lib/zip/bzip2/errors.rb

Overview

Raised if a data integrity error is detected (a mismatch between stored and computed CRCs or another anomaly in the compressed data).

Direct Known Subclasses

ConfigError, MagicDataError

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ DataError

Initializes a new instance of DataError.

Parameters:

  • message (String) (defaults to: nil)

    Exception message (overrides the default).



26
27
28
29
30
31
32
# File 'lib/zip/bzip2/errors.rb', line 26

def initialize(message = nil) # :nodoc:
  super(
    message ||
      'Data integrity error detected (mismatch between stored and computed CRCs, ' \
      'or other anomaly in the compressed data)',
  )
end