Sha256: c86872770b96b5d65dda0d49c753188a6c98ed1464049bdcaba50b9a89a3bf06
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
# frozen_string_literal: true module GoPuff module ProdcatApi class Error < StandardError end class HttpError < Error attr_reader :original def initialize(msg, original = $ERROR_INFO) super(msg) @original = original end end class ConfigError < Error; end class InvalidJsonResponseError < Error def initialize(msg, code, body = nil) msg += " | code: #{code}" msg += " | body: #{body}" if body super(msg) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
go_puff-prodcat_api-0.9.3.pre.beta.1 | lib/go_puff/prodcat_api/errors.rb |