Sha256: f3470b9114388b9db7ccd509981661927a78d6238bbd1f4f7f0a176f3276652d

Contents?: true

Size: 659 Bytes

Versions: 13

Compression:

Stored size: 659 Bytes

Contents

module LongURL
  # Raised by LongURL::Service class if longurl.org service returns unsupported service error.
  class UnsupportedService < StandardError
  end

  # Raised by LongURL::Service class if longurl.org service returns a not supported answer.
  class UnknownError < StandardError
  end
  
  # Raised by LongURL::Service if supplied url is invalid (nil, empty, ...)
  class InvalidURL < StandardError
  end
  
  # Raised if a network error occurs : timeout, unreachable network, ...
  class NetworkError < StandardError
  end
  
  # Raised if there are too many redirection in a direct resolution.
  class TooManyRedirections < StandardError
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
chuyeow-longurl-0.1.5 lib/longurl/exceptions.rb
jakimowicz-longurl-0.1.1 lib/longurl/exceptions.rb
jakimowicz-longurl-0.1.3 lib/longurl/exceptions.rb
jakimowicz-longurl-0.1.4 lib/longurl/exceptions.rb
jakimowicz-longurl-0.1.5 lib/longurl/exceptions.rb
jakimowicz-longurl-0.1.6 lib/longurl/exceptions.rb
ivey-longurl-0.1.7 lib/longurl/exceptions.rb
longurl-0.1.6 lib/longurl/exceptions.rb
longurl-0.1.2 lib/longurl/exceptions.rb
longurl-0.1.4 lib/longurl/exceptions.rb
longurl-0.1.3 lib/longurl/exceptions.rb
longurl-0.1.1 lib/longurl/exceptions.rb
longurl-0.1.5 lib/longurl/exceptions.rb