Robot Framework
exceptions.py
Go to the documentation of this file.
1 # Copyright 2008-2015 Nokia Networks
2 # Copyright 2016- Robot Framework Foundation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 
16 
23 
24 
25 
32  ROBOT_SUPPRESS_NAME = True
33 
34 
38  def __init__(self, message, html=False):
39  AssertionError.__init__(self, message if not html else '*HTML* ' + message)
40 
41 
42 
44  ROBOT_CONTINUE_ON_FAILURE = True
45 
46 
47 
58  ROBOT_SUPPRESS_NAME = True
59 
60 
64  def __init__(self, message, html=False):
65  RuntimeError.__init__(self, message if not html else '*HTML* ' + message)
66 
67 
68 
70  ROBOT_EXIT_ON_FAILURE = True
71  ROBOT_SUPPRESS_NAME = False
72 
73 
74 
76  ROBOT_SKIP_EXECUTION = True
77  ROBOT_SUPPRESS_NAME = True
78 
79 
83  def __init__(self, message, html=False):
84  Exception.__init__(self, message if not html else '*HTML* ' + message)
Report failed validation but allow continuing execution.
Definition: exceptions.py:43
Report error in execution.
Definition: exceptions.py:57
def __init__(self, message, html=False)
:param message: Exception message.
Definition: exceptions.py:64
Exceptions that libraries can use for communicating failures and other events.
Definition: exceptions.py:31
def __init__(self, message, html=False)
:param message: Exception message.
Definition: exceptions.py:38
Report error that stops the whole execution.
Definition: exceptions.py:69
Mark the executed test or task skipped.
Definition: exceptions.py:75
def __init__(self, message, html=False)
:param message: Exception message.
Definition: exceptions.py:83