Sha256: 21dbd8b63eb6257cb41b0c73e5b99984f949a279a077d07e77271ddc363df29d

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

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