Exception: PngCheck::CorruptPngError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pngcheck.rb

Direct Known Subclasses

EmptyPngError

Instance Method Summary collapse

Constructor Details

#initialize(msg, sts = STATUS_MAJOR_ERROR) ⇒ CorruptPngError

Returns a new instance of CorruptPngError.



17
18
19
20
# File 'lib/pngcheck.rb', line 17

def initialize(msg, sts = STATUS_MAJOR_ERROR)
  super(msg)
  @status = sts
end

Instance Method Details

#statusObject



22
23
24
# File 'lib/pngcheck.rb', line 22

def status
  @status
end