Skip to content

Commit

Permalink
speak of exceptions as raised
Browse files Browse the repository at this point in the history
  • Loading branch information
hatched-marek authored and charley committed Jun 14, 2010
1 parent ebf3803 commit 2c25479
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions commonwatir/lib/watir/exceptions.rb
Expand Up @@ -3,32 +3,32 @@ module Exception

# Root class for all Watir Exceptions
class WatirException < RuntimeError
def initialize(message="")
super(message)
end
def initialize(message="")
super(message)
end
end

# This exception is thrown if an attempt is made to access an object that doesn't exist
# This exception is raised if an attempt is made to access an object that doesn't exist
class UnknownObjectException < WatirException; end
# This exception is thrown if an attempt is made to access an object that is in a disabled state
# This exception is raised if an attempt is made to access an object that is in a disabled state
class ObjectDisabledException < WatirException; end
# This exception is thrown if an attempt is made to access a frame that cannot be found
# This exception is raised if an attempt is made to access a frame that cannot be found
class UnknownFrameException< WatirException; end
# This exception is thrown if an attempt is made to access a form that cannot be found
# This exception is raised if an attempt is made to access a form that cannot be found
class UnknownFormException< WatirException; end
# This exception is thrown if an attempt is made to access an object that is in a read only state
# This exception is raised if an attempt is made to access an object that is in a read only state
class ObjectReadOnlyException < WatirException; end
# This exception is thrown if an attempt is made to access an object when the specified value cannot be found
# This exception is raised if an attempt is made to access an object when the specified value cannot be found
class NoValueFoundException < WatirException; end
# This exception gets raised if part of finding an object is missing
class MissingWayOfFindingObjectException < WatirException; end
# this exception is raised if an attempt is made to access a table cell that doesnt exist
class UnknownCellException < WatirException; end
# This exception is thrown if the window cannot be found
# This exception is raised if the window cannot be found
class NoMatchingWindowFoundException < WatirException; end
# This exception is thrown if an attemp is made to acces the status bar of the browser when it doesnt exist
# This exception is raised if an attemp is made to acces the status bar of the browser when it doesnt exist
class NoStatusBarException < WatirException; end
# This exception is thrown if an http error, such as a 404, 500 etc is encountered while navigating
# This exception is raised if an http error, such as a 404, 500 etc is encountered while navigating
class NavigationException < WatirException; end
# This exception is raised if a timeout is exceeded
class TimeOutException < WatirException
Expand Down

0 comments on commit 2c25479

Please sign in to comment.