Sha256: deec97f8831beb0a517aaaf181e7ffce9bebf342f911c5a91d8201f9ed38970e
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module ActsAsTextcaptcha class ResponseError < StandardError def initialize(url, exception) super("fetching '#{url}' failed - #{exception}") end end class ApiKeyError < StandardError def initialize(api_key, exception) super("Api key '#{api_key}' is invalid - #{exception}") end end class ParseError < StandardError def initialize(url) super("parsing JSON from '#{url}' failed") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_textcaptcha-4.4.1 | lib/acts_as_textcaptcha/errors.rb |