Sha256: 9f157f752e884ec2ac5dcf8bfb816b2ab6a1bc0d3a32c600d5462596cb98272c

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 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

  # Raised when an exception occurs in Preferences.
  class PreferencesException < OperaWatirException; end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby lib/operawatir/exceptions.rb
operawatir-0.7.pre3-jruby lib/operawatir/exceptions.rb
operawatir-0.7.pre2-jruby lib/operawatir/exceptions.rb
operawatir-0.7.pre1-jruby lib/operawatir/exceptions.rb
operawatir-0.6.pre1-jruby lib/operawatir/exceptions.rb
operawatir-0.5.1-jruby lib/operawatir/exceptions.rb
operawatir-0.5-jruby lib/operawatir/exceptions.rb
operawatir-0.5.pre3-jruby lib/operawatir/exceptions.rb
operawatir-0.5.pre2-jruby lib/operawatir/exceptions.rb
operawatir-0.5.pre1-jruby lib/operawatir/exceptions.rb