Sha256: 1b380fd53949fed1dc1b5f6694cd2c5475dea5b21a01d7b1bdb86c7f1643e0ac

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

module OperaWatir::Exceptions

  # Superclass for all OperaWatir exceptions.
  #
  # @example
  #   begin
  #     ...
  #   rescue OperaWatirException
  #   end
  class OperaWatirException < RuntimeError; end
  
  # Raised when a method is called on an object which doesn't have a
  # corresponding element.
  class UnknownObjectException < OperaWatirException; end

  # Raised when specifying an unknown way of finding an element.
  #
  # @example browser.divs(:weird_method, 10)
  class MissingWayOfFindingObjectException < OperaWatirException; end
  
  # Raised when trying to switch to an unknown frame.
  class UnknownFrameException < OperaWatirException; end

  # Raised when performing an action which has not yet been
  # implemented by OperaWatir.
  class NotImplementedException < OperaWatirException; end

  # TODO Document this
  class NoValueFoundException < OperaWatirException; end

  # Raised when trying to perform an action on an element which is
  # disabled.
  class ObjectDisabledException < OperaWatirException; end
  
  # Raised when trying to access a table cell that doesn't exist.
  class UnknownCellException < OperaWatirException; end

  # Raised when pressing a modifier key that doesn't exist.
  class InvalidKeyException < OperaWatirException; end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
operawatir-0.3.2-jruby lib/operawatir/exceptions.rb