Sha256: 8f633db0ab8801cae37b52ad4e7d83d4b7eae357a17d965fba967f8bea8548ce

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

module Nuncium
  class Error < StandardError; end

  class ConfigNotSet < Error
    def initialize(param)
      msg = "Please check if you set #{param}, seems it is missing."
      super(msg)
    end
  end

  class HtmlResponseReceived < Error
    def initialize(param)
      msg = 'Please check if you set credentials correctly, '\
        "seems like a typo or something:\n #{param}"
      super(msg)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/utils/errors.rb