Sha256: 9242fbee39e95b548d815e242e9ff324646355e253865f0e9160486ead2ef321

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

module Manifique
  class Error < ::StandardError
    attr_reader :type, :url

    def initialize(msg="Encountered an error", type="generic", url)
      @type = type
      @url = url
      super(msg)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
manifique-1.1.0 lib/manifique/errors.rb
manifique-1.0.1 lib/manifique/errors.rb
manifique-1.0.0 lib/manifique/errors.rb