Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94d4a45

Browse files
committed
all exceptions should inherit from TestgresException
1 parent55296e9 commit94d4a45

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

‎testgres/testgres.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@
7575
DEFAULT_XLOG_METHOD="fetch"
7676

7777

78-
classExecUtilException(Exception):
78+
classTestgresException(Exception):
79+
"""
80+
Base exception
81+
"""
82+
pass
83+
84+
85+
classExecUtilException(TestgresException):
7986
"""
8087
Stores exit code
8188
"""
@@ -85,31 +92,31 @@ def __init__(self, message, exit_code=0):
8592
self.exit_code=exit_code
8693

8794

88-
classClusterException(Exception):
95+
classClusterTestgresException(TestgresException):
8996
pass
9097

9198

92-
classQueryException(Exception):
99+
classQueryException(TestgresException):
93100
pass
94101

95102

96-
classTimeoutException(Exception):
103+
classTimeoutException(TestgresException):
97104
pass
98105

99106

100-
classStartNodeException(Exception):
107+
classStartNodeException(TestgresException):
101108
pass
102109

103110

104-
classInitNodeException(Exception):
111+
classInitNodeException(TestgresException):
105112
pass
106113

107114

108-
classBackupException(Exception):
115+
classBackupException(TestgresException):
109116
pass
110117

111118

112-
classCatchUpException(Exception):
119+
classCatchUpException(TestgresException):
113120
pass
114121

115122

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp