Skip to content

Commit fefb234

Browse files
author
Patrick Dassier
committed
Prepare error management feature
1 parent 0762c60 commit fefb234

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

testlink.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
"""
23
34
TestLinkAPI - v0.20
@@ -11,6 +12,16 @@
1112
import xmlrpclib
1213
import sys
1314

15+
class Errors(Exception):
16+
""" Basic error handler
17+
Return message pass as argument
18+
"""
19+
def __init__(self, msg):
20+
self.__msg = msg
21+
22+
def __str__(self):
23+
return self.__msg
24+
1425
class TestLinkAPIClient:
1526

1627
__VERSION__ = "0.3"

0 commit comments

Comments
 (0)