Skip to content

Commit c339e26

Browse files
committed
doc: Document OpTestError as deprecated
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
1 parent 23a6681 commit c339e26

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

common/OpTestError.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
#
2525
# IBM_PROLOG_END_TAG
2626

27-
## @package OpTestError
28-
# BMC package which contains all BMC related Errors
27+
"""
28+
A catch-all exception.
29+
30+
Use of this exception is **DEPRECATED** and will be removed in the future.
31+
32+
Some existing code uses this, and it should be gradually converted to use
33+
more specialized exceptions.
34+
"""
2935

30-
#
31-
# @par Class description:
32-
# Exception Class, for the raising Bmc related Exceptions
33-
#
34-
# Attributes: @li ExceptionCode -- Code to indicate the error \n @li Reason -- explanation of the error
35-
##
3636
class OpTestError(Exception):
3737
pass
3838

doc/programming.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Exceptions
1111
:members:
1212
:undoc-members:
1313

14+
OpTestError
15+
^^^^^^^^^^^
16+
.. automodule:: common.OpTestError
17+
:members:
18+
:undoc-members:
19+
1420
OPExpect
1521
--------
1622

0 commit comments

Comments
 (0)