class ZipContainer::MalformedContainerError

This exception is raised when a bad Container is detected.

Public Class Methods

new(reason = "") click to toggle source

Create a new MalformedContainerError with an optional reason for why the Container file is malformed.

Calls superclass method
# File lib/zip-container/exceptions.rb, line 48
def initialize(reason = nil)
  if reason.nil?
    super("Malformed Container File.")
  else
    super("Malformed Container File: #{reason}")
  end
end