Sha256: c4762c3ef0b2df43092b3e8ec4031a112d287b4619698e0092a6bfda65e68450

Contents?: true

Size: 537 Bytes

Versions: 7

Compression:

Stored size: 537 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
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jakimowicz-longurl-0.0.2 lib/longurl/exceptions.rb
jakimowicz-longurl-0.0.3 lib/longurl/exceptions.rb
jakimowicz-longurl-0.0.4 lib/longurl/exceptions.rb
longurl-0.0.2 lib/longurl/exceptions.rb
longurl-0.1.0 lib/longurl/exceptions.rb
longurl-0.0.4 lib/longurl/exceptions.rb
longurl-0.0.3 lib/longurl/exceptions.rb