mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
support python3 update exceptions function code
This commit is contained in:
parent
1bfb25b493
commit
8a65fafb47
@ -3,10 +3,12 @@
|
||||
class SelfServerException(Exception) :
|
||||
def __init__(self, message, detail_msg= "", host_and_port="") :
|
||||
super(Exception, self).__init__(message)
|
||||
self.message = message
|
||||
self.host_and_port = host_and_port
|
||||
self.detail_msg = detail_msg
|
||||
|
||||
class SelfClientException(Exception) :
|
||||
def __init__(self, message, code) :
|
||||
super(Exception, self).__init__(message)
|
||||
self.message = message
|
||||
self.code = code
|
||||
|
Loading…
x
Reference in New Issue
Block a user