Sha256: f06c0fdad614e4ba3918e701d444e4368b1438cbf04d761da99ae6c6a7e03e6c

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

module Api2Captcha
  class ValidationException < StandardError
    def initialize(message = 'Invalid parameters passed')
      super(message)
    end
  end

  class NetworkException < StandardError
    def initialize(message = 'Network error occurred')
      super(message)
    end
  end

  class ApiException < StandardError
    def initialize(message = 'API response error')
      super(message)
    end
  end

  class TimeoutException < StandardError
    def initialize(message = 'Captcha solving timed out')
      super(message)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby-2captcha-1.1.6 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.1.4 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.1.3 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.1.2 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.1.1 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.1.0 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.0.5 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.0.3 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.0.2 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.0.1 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-1.0.0 lib/api_2captcha/api2captcha_exceptions.rb
ruby-2captcha-0.2.0 lib/api_2captcha/api2captcha_exceptions.rb