Sha256: c9c5f53fa382d3ab3b67bbd3ba67179c02c63d03603c612c2d11b36fdb64756f
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
class UrlFetcher class Error < StandardError ; end class TooManyRedirects < Error attr_reader :url, :max_attempts def initialize(url, max_attempts) @url, @max_attempts = url, max_attempts end def to_s "#{url} has too many redirects (over #{max_attempts})." end end class CircularRedirect < Error attr_reader :url def initialize(url) @url = url end def to_s "#{url} has a redirect loop." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
url_fetcher-1.0.2 | lib/url_fetcher/errors.rb |