mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| 
 | |
| 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
 |