Sha256: 436593a0f7e1f43a186487e3d0c19262681632fae584b68d2c0998997e032c16

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

module Whois

  # @!group Parser

  # Generic class for parser errors.
  class ParserError < Error
  end

  # Raised when the library hasn't been able to load a valid parser
  # according to current settings and you're trying to access a property
  # that requires a valid parser.
  class ParserNotFound < ParserError
  end

  # Raised when you are trying to access an attribute that has not been implemented.
  class AttributeNotImplemented < ParserError
  end

  # Raised when you are trying to access an attribute that is not supported.
  class AttributeNotSupported < ParserError
  end

  # @!endgroup


  # @!group Response

  # Generic class for response errors.
  class ResponseError < Error
  end

  # Raised when attempting to access a property when the response is throttled.
  #
  # @see Whois::Parsers::Base#response_throttled?
  class ResponseIsThrottled < ResponseError
  end

  # Raised when attempting to access a property when the response is unavailable.
  #
  # @see Whois::Parsers::Base#response_unavailable?
  class ResponseIsUnavailable < ResponseError
  end

  # @!endgroup

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
whois-parser-2.0.0 lib/whois/parser/errors.rb
whois-parser-1.2.0 lib/whois/parser/errors.rb
whois-parser-1.1.0 lib/whois/parser/errors.rb
whois-parser-1.0.1 lib/whois/parser/errors.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parser/errors.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parser/errors.rb
whois-parser-1.0.0 lib/whois/parser/errors.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parser/errors.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parser/errors.rb