errors
Exceptions and return codes used internally.
External libraries should not used exceptions defined here.
BreakLoop
¶
ContinueLoop
¶
DataError
¶
Bases: RobotError
Used when the provided test data is invalid.
DataErrors are not caught by keywords that run other keywords
(e.g. Run Keyword And Expect Error
).
Source code in src/robot/errors.py
ExecutionFailed
¶
Bases: ExecutionStatus
Used for communicating failures in test execution.
Source code in src/robot/errors.py
ExecutionPassed
¶
Bases: ExecutionStatus
Base class for all exceptions communicating that execution passed.
Should not be raised directly, but more detailed exceptions used instead.
Source code in src/robot/errors.py
ExecutionStatus
¶
Bases: RobotError
Base class for exceptions communicating status in test execution.
Source code in src/robot/errors.py
FrameworkError
¶
Bases: RobotError
Can be used when the core framework goes to unexpected state.
It is good to explicitly raise a FrameworkError if some framework component is used incorrectly. This is pretty much same as 'Internal Error' and should of course never happen.
Source code in src/robot/errors.py
Information
¶
Bases: RobotError
Used by argument parser with --help or --version.
Source code in src/robot/errors.py
KeywordError
¶
Bases: DataError
Used when no keyword is found or there is more than one match.
KeywordErrors are caught by keywords that run other keywords
(e.g. Run Keyword And Expect Error
).
Source code in src/robot/errors.py
PassExecution
¶
RemoteError
¶
Bases: RobotError
Used by Remote library to report remote errors.
Source code in src/robot/errors.py
ReturnFromKeyword
¶
RobotError
¶
Bases: Exception
Base class for Robot Framework errors.
Do not raise this method but use more specific errors instead.
Source code in src/robot/errors.py
TimeoutError
¶
Bases: RobotError
Used when a test or keyword timeout occurs.
This exception is handled specially so that execution of the
current test is always stopped immediately and it is not caught by
keywords executing other keywords (e.g. Run Keyword And Expect Error
).